Skip to content

Commit

Permalink
Geometry: Fix Mixed Precision Builds
Browse files Browse the repository at this point in the history
Use the correct floating point type.
  • Loading branch information
ax3l committed Aug 12, 2023
1 parent 8245fd3 commit 53fa09d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Base/Geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <AMReX_CoordSys.H>
#include <AMReX_MultiFab.H>
#include <AMReX_Periodicity.H>
#include <AMReX_REAL.H>

#include <sstream>
#include <string>
Expand Down Expand Up @@ -194,10 +195,10 @@ void init_Geometry(py::module& m)
.def("setPeriodicity", &Geometry::setPeriodicity)
.def("coarsen", &Geometry::coarsen)
.def("refine", &Geometry::refine)
.def("outsideRoundOffDomain", py::overload_cast<AMREX_D_DECL(Real, Real, Real)>
.def("outsideRoundOffDomain", py::overload_cast<AMREX_D_DECL(ParticleReal, ParticleReal, ParticleReal)>
(&Geometry::outsideRoundoffDomain, py::const_),
"Returns true if a point is outside the roundoff domain. All particles with positions inside the roundoff domain are sure to be mapped to cells inside the Domain() box. Note that the same need not be true for all points inside ProbDomain()")
.def("insideRoundOffDomain", py::overload_cast<AMREX_D_DECL(Real, Real, Real)>
.def("insideRoundOffDomain", py::overload_cast<AMREX_D_DECL(ParticleReal, ParticleReal, ParticleReal)>
(&Geometry::insideRoundoffDomain, py::const_),
"Returns true if a point is inside the roundoff domain. All particles with positions inside the roundoff domain are sure to be mapped to cells inside the Domain() box. Note that the same need not be true for all points inside ProbDomain()")

Expand Down

0 comments on commit 53fa09d

Please sign in to comment.