Skip to content

Commit

Permalink
AMReX: Update to latest development (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Aug 12, 2024
1 parent c23d305 commit 92bf657
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/dependencies/AMReX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ option(pyAMReX_amrex_internal "Download & build AMReX" ON)
set(pyAMReX_amrex_repo "https://github.com/AMReX-Codes/amrex.git"
CACHE STRING
"Repository URI to pull and build AMReX from if(pyAMReX_amrex_internal)")
set(pyAMReX_amrex_branch "24.08"
set(pyAMReX_amrex_branch "e792933f9561c9ab0e47238c041a6c09818f0908"
CACHE STRING
"Repository branch for pyAMReX_amrex_repo if(pyAMReX_amrex_internal)")

Expand Down
5 changes: 2 additions & 3 deletions src/Base/Box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,13 @@ void init_Box(py::module &m) {
.def_property_readonly("volume", &Box::volume)
.def_property_readonly("the_unit_box", &Box::TheUnitBox)
.def_property_readonly("is_square", &Box::isSquare)

.def("contains",
py::overload_cast< IntVect const & >(&Box::contains, py::const_),
[](Box const & bx, IntVect const & p){ return bx.contains(p); },
py::arg("p"),
"Returns true if argument is contained within Box."
)
.def("strictly_contains",
py::overload_cast< IntVect const & >(&Box::strictly_contains, py::const_),
[](Box const & bx, IntVect const & p){ return bx.strictly_contains(p); },
py::arg("p"),
"Returns true if argument is strictly contained within Box."
)
Expand Down

0 comments on commit 92bf657

Please sign in to comment.