OGS
ogs_embedded_python.cpp File Reference

Detailed Description

Definition in file ogs_embedded_python.cpp.

Include dependency graph for ogs_embedded_python.cpp:

Go to the source code of this file.

Namespaces

namespace  ApplicationsLib

Functions

 PYBIND11_EMBEDDED_MODULE (OpenGeoSys, m)
pybind11::scoped_interpreter ApplicationsLib::setupEmbeddedPython ()

Function Documentation

◆ PYBIND11_EMBEDDED_MODULE()

PYBIND11_EMBEDDED_MODULE ( OpenGeoSys ,
m  )

Definition at line 22 of file ogs_embedded_python.cpp.

23{
24 DBUG("Binding Python module OpenGeoSys.");
25
29
30 // Check for activated virtual environment and add it to sys.path
31 pybind11::exec(R"(
32 import os
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
void pythonBindSourceTerm(pybind11::module &m)
Creates Python bindings for the Python source term class.
void pythonBindBoundaryCondition(pybind11::module &m)
Creates Python bindings for the Python BC class.
void bheInflowpythonBindBoundaryCondition(pybind11::module &m)
Creates BHE Inflow Python bindings for the Python BC class.

References ProcessLib::bheInflowpythonBindBoundaryCondition(), DBUG(), ProcessLib::pythonBindBoundaryCondition(), and ProcessLib::SourceTerms::Python::pythonBindSourceTerm().