5#include <pybind11_json/pybind11_json.hpp>
10 template <DeviceBackend B>
20 nlohmann::json settings_json = settings;
22 finiteVolumeCellOpTest_main<B>(fv, u, u_grad, nIter,
t_jsonconfig(settings_json));
24 py::arg(
"fv"), py::arg(
"u"), py::arg(
"u_grad"), py::arg(
"nIter") = 1, py::arg(
"settings") = py::none());
27 template <DeviceBackend B,
int nVarsFixed>
30 m.def((std::string(
"finiteVolumeCellOpTest_Fixed_main_") +
device_backend_name(B) +
"_N" + std::to_string(nVarsFixed)).c_str(),
37 nlohmann::json settings_json = settings;
39 finiteVolumeCellOpTest_Fixed_main<B, nVarsFixed>(fv, u, u_grad, nIter,
t_jsonconfig(settings_json));
41 py::arg(
"fv"), py::arg(
"u"), py::arg(
"u_grad"), py::arg(
"nIter") = 1, py::arg(
"settings") = py::none());
44 template <DeviceBackend B,
int nVarsFixed>
47 m.def((std::string(
"finiteVolumeCellOpTest_SOA_ver0_main_") +
device_backend_name(B) +
"_N" + std::to_string(nVarsFixed)).c_str(),
54 nlohmann::json settings_json = settings;
56 finiteVolumeCellOpTest_SOA_ver0_main<B, nVarsFixed>(fv, u, u_grad, nIter,
t_jsonconfig(settings_json));
58 py::arg(
"fv"), py::arg(
"u"), py::arg(
"u_grad"), py::arg(
"nIter") = 1, py::arg(
"settings") = py::none());
Eigen::Matrix< real, 3, 3 > m
Primary solver state container: an ArrayEigenMatrix pair with MPI-collective vector-space operations.
void pybind11_BenchmarkFiniteVolume_define_Fixed(py::module_ &m)
void pybind11_BenchmarkFiniteVolume_define_SOA_ver0(py::module_ &m)
void pybind11_BenchmarkFiniteVolume_define(py::module_ &m)
const char * device_backend_name(DeviceBackend B)
Canonical string name for a DeviceBackend (used in log messages).
nlohmann::ordered_json t_jsonconfig
Project-wide JSON type alias: nlohmann/json with ordered keys.