From 92bf657b989cc1f397d71f794eefc90c3c7c7057 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Sun, 11 Aug 2024 23:03:01 -0500 Subject: [PATCH] AMReX: Update to latest development (#352) --- cmake/dependencies/AMReX.cmake | 2 +- src/Base/Box.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cmake/dependencies/AMReX.cmake b/cmake/dependencies/AMReX.cmake index 0f911b11..6557907c 100644 --- a/cmake/dependencies/AMReX.cmake +++ b/cmake/dependencies/AMReX.cmake @@ -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)") diff --git a/src/Base/Box.cpp b/src/Base/Box.cpp index 3410dd0d..f6cf8a17 100644 --- a/src/Base/Box.cpp +++ b/src/Base/Box.cpp @@ -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." )