OGS
ApplicationsLib Namespace Reference

Detailed Description

The LinearSolverLibrarySetup takes care of proper initialization and shutting down of an external linear solver library. The concrete implementation is chosen by the build system. An object of this class must be created at the beginning of the scope where it is used. When the scope closes (or the object is destroyed explicitly) library shutting down functions are automatically called. The default implementation is empty providing polymorphic behaviour when using this class.

Classes

struct  LinearSolverLibrarySetup
class  TestDefinition

Functions

pybind11::scoped_interpreter setupEmbeddedPython ()

Function Documentation

◆ setupEmbeddedPython()

OGS_EXPORT_SYMBOL pybind11::scoped_interpreter ApplicationsLib::setupEmbeddedPython ( )

Sets up an embedded Python interpreter and makes sure that the OpenGeoSys Python module is not removed by the linker.

Definition at line 36 of file ogs_embedded_python.cpp.

36 :
37 print(
38 f"Virtual environment detected, adding {venv_site_packages_path} to sys.path."
39 )
40 sys.path.insert(0, venv_site_packages_path)
41 )");
42}
43
44namespace ApplicationsLib