20#include <pybind11/numpy.h>
23 auto &m = root_module;
28 py::class_<Grid>(m,
"AMRGrid")
30 return std::make_unique<Grid>(*ctx.sched);
35 std::array<u64, 3> min,
36 std::array<u64, 3> cell_size,
37 std::array<u32, 3> cell_count) {
39 u64_3{min[0], min[1], min[2]},
40 u64_3{cell_size[0], cell_size[1], cell_size[2]},
The AMR grid only sees the grid as an integer map.
Pybind11 include and definitions.
#define ON_PYTHON_INIT
Register a Python module init function using static initialization.
void debug_ln(std::string module_name, Types... var2)
Prints a log message with multiple arguments followed by a newline.