Skip to content

Commit

Permalink
Add grow_low and high to Box
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Oct 13, 2023
1 parent 740da41 commit af382e5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/Base/Box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -209,8 +225,6 @@ void init_Box(py::module &m) {

// minBox
// chop
// growLo
// growHi
// refine
// coarsen
// next
Expand Down

0 comments on commit af382e5

Please sign in to comment.