OGS
ogs_embedded_python.cpp File Reference
#include "ogs_embedded_python.h"
#include <pybind11/embed.h>
#include <array>
#include <cstdio>
#include <filesystem>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include "BaseLib/Error.h"
#include "BaseLib/Logging.h"
#include "ProcessLib/BoundaryConditionAndSourceTerm/Python/BHEInflowPythonBoundaryConditionModule.h"
#include "ProcessLib/BoundaryConditionAndSourceTerm/Python/PythonBoundaryConditionModule.h"
#include "ProcessLib/BoundaryConditionAndSourceTerm/Python/PythonSourceTermModule.h"
Include dependency graph for ogs_embedded_python.cpp:

Go to the source code of this file.

Namespaces

namespace  ApplicationsLib
namespace  ApplicationsLib::anonymous_namespace{ogs_embedded_python.cpp}

Functions

 PYBIND11_EMBEDDED_MODULE (OpenGeoSys, m)
pybind11::scoped_interpreter ApplicationsLib::setupEmbeddedPython ()
std::vector< std::filesystem::path > ApplicationsLib::anonymous_namespace{ogs_embedded_python.cpp}::findAlternativeSitePackagesPaths (std::filesystem::path const &venv_path)
std::filesystem::path ApplicationsLib::anonymous_namespace{ogs_embedded_python.cpp}::findSitePackagesPath (std::filesystem::path const &venv_path, int const emb_major, int const emb_minor)
 Finds site-packages path in the virtual environment.
void ApplicationsLib::setupEmbeddedPythonVenvPaths ()

Function Documentation

◆ PYBIND11_EMBEDDED_MODULE()

PYBIND11_EMBEDDED_MODULE ( OpenGeoSys ,
m  )

Definition at line 23 of file ogs_embedded_python.cpp.

24{
25 DBUG("Binding Python module OpenGeoSys.");
26
30}
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:22
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().