SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
bindings.cpp
Go to the documentation of this file.
1#include <pybind11/pybind11.h>
2
3#include <string>
4
5#include "const/bindings.h"
7#include "config/bindings.h"
8#include "eos/bindings.h"
9#include "mfem/bindings.h"
10#include "polytrope/bindings.h"
11#include "network/bindings.h"
12
14 m.doc() = "Python bindings for the SERiF project";
15
16 auto compMod = m.def_submodule("composition", "Composition-module bindings");
18
19 auto constMod = m.def_submodule("constants", "Constants-module bindings");
21
22 auto configMod = m.def_submodule("config", "Configuration-module bindings");
23 register_config_bindings(configMod);
24
25 auto eosMod = m.def_submodule("eos", "EOS-module bindings");
27
28 auto mfemMod = m.def_submodule("mfem", "MFEM bindings");
30
31 auto polytropeMod = m.def_submodule("polytrope", "Polytrope-module bindings");
32 register_polytrope_bindings(polytropeMod);
33
34 auto networkMod = m.def_submodule("network", "Network-module bindings");
35 register_network_bindings(networkMod);
36}
PYBIND11_MODULE(serif, m)
Definition bindings.cpp:13
void register_comp_bindings(pybind11::module &comp_submodule)
Definition bindings.cpp:26
void register_config_bindings(pybind11::module &config_submodule)
Definition bindings.cpp:23
void register_const_bindings(pybind11::module &const_submodule)
Definition bindings.cpp:12
void register_eos_bindings(pybind11::module &eos_submodule)
Definition bindings.cpp:19
void register_mfem_bindings(py::module &mfem_submodule)
Definition bindings.cpp:21
Declares functions to register MFEM core library components with pybind11.
void register_network_bindings(pybind11::module &network_submodule)
Definition bindings.cpp:15
void register_polytrope_bindings(pybind11::module &polytrope_submodule)
Registers C++ classes and functions from the serif::polytrope namespace to Python.
Definition bindings.cpp:14
Declares the function to register polytrope module C++ components with pybind11.