Skip to content

Commit

Permalink
Config: Add have_eb Property
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Sep 6, 2024
1 parent 7263091 commit c66d7fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Base/AMReX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ void init_AMReX(py::module& m)
"verbose",
[](py::object) { return Verbose(); },
[](py::object, const int v) { SetVerbose(v); })
.def_property_readonly_static(
"have_eb",
[](py::object){
#ifdef AMREX_USE_EB
return true;
#else
return false;
#endif
})
.def_property_readonly_static(
"have_mpi",
[](py::object){
Expand Down

0 comments on commit c66d7fb

Please sign in to comment.