OGS
ogs_mpl.cpp File Reference

Detailed Description

Definition in file ogs_mpl.cpp.

#include <pybind11/eigen.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <range/v3/range/conversion.hpp>
#include <range/v3/view/transform.hpp>
#include "BaseLib/Logging.h"
#include "BaseLib/MPI.h"
#include "MaterialLib/MPL/Properties/Constant.h"
#include "MaterialLib/MPL/Properties/Linear.h"
#include "MaterialLib/MPL/Property.h"
#include "MathLib/Point3d.h"
#include "ParameterLib/SpatialPosition.h"
Include dependency graph for ogs_mpl.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{ogs_mpl.cpp}
 

Functions

std::optional< MathLib::Point3danonymous_namespace{ogs_mpl.cpp}::pythonToSpatialPositionCoords (py::object const &coordinates)
 
py::object anonymous_namespace{ogs_mpl.cpp}::spatialPositionCoordsToPython (SpatialPosition const &pos)
 
void anonymous_namespace{ogs_mpl.cpp}::bindSpatialPosition (py::module_ &m)
 
void anonymous_namespace{ogs_mpl.cpp}::bindVariableArray (py::module_ &m)
 
void anonymous_namespace{ogs_mpl.cpp}::bindVariableEnum (py::module_ &m)
 
void anonymous_namespace{ogs_mpl.cpp}::bindProperty (py::module_ &m)
 
void anonymous_namespace{ogs_mpl.cpp}::bindConstant (py::module_ &m)
 
void anonymous_namespace{ogs_mpl.cpp}::bindLinear (py::module_ &m)
 
 PYBIND11_MODULE (mpl, m)
 

Function Documentation

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( mpl ,
m  )

Definition at line 370 of file ogs_mpl.cpp.

371{
372#ifndef NDEBUG
374#else // NDEBUG
376#endif // NDEBUG
377
378 m.attr("__name__") = "ogs.mpl";
379 m.doc() = "pybind11 ogs MPL bindings";
380
384 bindProperty(m);
385 bindConstant(m);
386 bindLinear(m);
387}
void initOGSLogger(std::string const &log_level)
Definition Logging.cpp:64
void bindSpatialPosition(py::module_ &m)
Definition ogs_mpl.cpp:59
void bindConstant(py::module_ &m)
Definition ogs_mpl.cpp:246
void bindLinear(py::module_ &m)
Definition ogs_mpl.cpp:257
void bindVariableArray(py::module_ &m)
Definition ogs_mpl.cpp:119
void bindVariableEnum(py::module_ &m)
Definition ogs_mpl.cpp:159
void bindProperty(py::module_ &m)
Definition ogs_mpl.cpp:191

References anonymous_namespace{ogs_mpl.cpp}::bindConstant(), anonymous_namespace{ogs_mpl.cpp}::bindLinear(), anonymous_namespace{ogs_mpl.cpp}::bindProperty(), anonymous_namespace{ogs_mpl.cpp}::bindSpatialPosition(), anonymous_namespace{ogs_mpl.cpp}::bindVariableArray(), anonymous_namespace{ogs_mpl.cpp}::bindVariableEnum(), and BaseLib::initOGSLogger().