From af382e5c1bffada55004a9f9ca8dc56f73e6ef3b Mon Sep 17 00:00:00 2001 From: Dave Grote Date: Fri, 13 Oct 2023 11:13:06 -0700 Subject: [PATCH] Add grow_low and high to Box --- src/Base/Box.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Base/Box.cpp b/src/Base/Box.cpp index 1164213a..b14f1d14 100644 --- a/src/Base/Box.cpp +++ b/src/Base/Box.cpp @@ -184,6 +184,22 @@ void init_Box(py::module &m) { py::overload_cast< Direction, int >(&Box::grow), py::arg("d"), py::arg("n_cell") ) + .def("grow_low", + py::overload_cast< int, int >(&Box::growLo), + py::arg("idir"), py::arg("n_cell") + ) + .def("grow_low", + py::overload_cast< Direction, int >(&Box::growLo), + py::arg("d"), py::arg("n_cell") + ) + .def("grow_high", + py::overload_cast< int, int >(&Box::growHi), + py::arg("idir"), py::arg("n_cell") + ) + .def("grow_high", + py::overload_cast< Direction, int >(&Box::growHi), + py::arg("d"), py::arg("n_cell") + ) .def("surrounding_nodes", py::overload_cast< >(&Box::surroundingNodes)) @@ -209,8 +225,6 @@ void init_Box(py::module &m) { // minBox // chop - // growLo - // growHi // refine // coarsen // next