20#include <pybind11/numpy.h>
27 py::class_<Grid>(m,
"AMRGrid")
29 return std::make_unique<Grid>(*ctx.sched);
34 std::array<u64, 3> min,
35 std::array<u64, 3> cell_size,
36 std::array<u32, 3> cell_count) {
38 u64_3{min[0], min[1], min[2]},
39 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 Register_pymod(placeholdername)
Register a python module init function using static initialisation.
void debug_ln(std::string module_name, Types... var2)
Prints a log message with multiple arguments followed by a newline.