OGS
ogs_callbacks_module.cpp File Reference

Detailed Description

Definition in file ogs_callbacks_module.cpp.

Include dependency graph for ogs_callbacks_module.cpp:

Go to the source code of this file.

Functions

 PYBIND11_MODULE (callbacks, m)
 

Function Documentation

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( callbacks ,
m  )

Definition at line 20 of file ogs_callbacks_module.cpp.

21{
22 m.attr("__name__") = "ogs.callbacks";
26
27 pybind11::exec(R"(
28 try:
29 import OpenGeoSys
30 raise ImportError("The Python interpreter seems to be running inside the OGS binary, but you are about to import a Python module from OGS's Python bindings. Please do not import ogs.callbacks, but use the OpenGeoSys module, instead.")
31 except ModuleNotFoundError:
32 pass
33 )");
34}
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(), ProcessLib::pythonBindBoundaryCondition(), and ProcessLib::SourceTerms::Python::pythonBindSourceTerm().