This version of fourdst (v0.9.14) brings in the version libconfig which includes reflection based config filed (v2.0.2). This is a breaking change as any code which used versions of libconfig < v2.0.0 will no longer function when linked against this version of fourdst
26 lines
881 B
C++
26 lines
881 B
C++
#include <pybind11/pybind11.h>
|
|
|
|
#include <string>
|
|
|
|
#include "constants/bindings.h"
|
|
#include "composition/bindings.h"
|
|
#include "config/bindings.h"
|
|
|
|
PYBIND11_MODULE(_phys, m) {
|
|
m.doc() = "Python bindings for the fourdst utility modules which are a part of the 4D-STAR project.";
|
|
|
|
auto exceptionMod = m.def_submodule("exceptions", "Exception bindings");
|
|
register_comp_exceptions(exceptionMod);
|
|
|
|
auto atomicMod = m.def_submodule("atomic", "Species bindings");
|
|
register_species_bindings(atomicMod);
|
|
|
|
auto compMod = m.def_submodule("composition", "Composition-module bindings");
|
|
register_comp_bindings(compMod);
|
|
|
|
auto constMod = m.def_submodule("constants", "Constants-module bindings");
|
|
register_const_bindings(constMod);
|
|
|
|
const auto configMod = m.def_submodule("config", "Configuration-module bindings");
|
|
register_config_enums(configMod);
|
|
} |