2025-12-20 16:02:52 -05:00
|
|
|
#include "bindings.h"
|
|
|
|
|
|
|
|
|
|
#include "gridfire/config/config.h"
|
|
|
|
|
#include <pybind11/pybind11.h>
|
|
|
|
|
|
|
|
|
|
namespace py = pybind11;
|
|
|
|
|
|
|
|
|
|
void register_config_bindings(pybind11::module &m) {
|
2026-04-09 07:42:28 -04:00
|
|
|
py::class_<gridfire::config::PointSolverConfig>(m, "PointSolverConfig")
|
2025-12-20 16:02:52 -05:00
|
|
|
.def(py::init<>())
|
2026-04-09 07:42:28 -04:00
|
|
|
.def_readwrite("absTol", &gridfire::config::PointSolverConfig::absTol)
|
|
|
|
|
.def_readwrite("relTol", &gridfire::config::PointSolverConfig::relTol);
|
2025-12-20 16:02:52 -05:00
|
|
|
|
|
|
|
|
py::class_<gridfire::config::SolverConfig>(m, "SolverConfig")
|
|
|
|
|
.def(py::init<>())
|
2026-04-09 07:42:28 -04:00
|
|
|
.def_readwrite("pointSolver", &gridfire::config::SolverConfig::pointSolver);
|
2025-12-20 16:02:52 -05:00
|
|
|
|
|
|
|
|
py::class_<gridfire::config::AdaptiveEngineViewConfig>(m, "AdaptiveEngineViewConfig")
|
|
|
|
|
.def(py::init<>())
|
|
|
|
|
.def_readwrite("relativeCullingThreshold", &gridfire::config::AdaptiveEngineViewConfig::relativeCullingThreshold);
|
|
|
|
|
|
|
|
|
|
py::class_<gridfire::config::EngineViewConfig>(m, "EngineViewConfig")
|
|
|
|
|
.def(py::init<>())
|
|
|
|
|
.def_readwrite("adaptiveEngineView", &gridfire::config::EngineViewConfig::adaptiveEngineView);
|
|
|
|
|
|
|
|
|
|
py::class_<gridfire::config::EngineConfig>(m, "EngineConfig")
|
|
|
|
|
.def(py::init<>())
|
|
|
|
|
.def_readwrite("views", &gridfire::config::EngineConfig::views);
|
|
|
|
|
|
|
|
|
|
py::class_<gridfire::config::GridFireConfig>(m, "GridFireConfig")
|
|
|
|
|
.def(py::init<>())
|
|
|
|
|
.def_readwrite("solver", &gridfire::config::GridFireConfig::solver)
|
|
|
|
|
.def_readwrite("engine", &gridfire::config::GridFireConfig::engine);
|
|
|
|
|
}
|