Skip to content

Commit d1598ba

Browse files
authored
Geometry: Fix Mixed Precision Builds (#176)
Use the correct floating point type.
1 parent 8245fd3 commit d1598ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Base/Geometry.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <AMReX_CoordSys.H>
55
#include <AMReX_MultiFab.H>
66
#include <AMReX_Periodicity.H>
7+
#include <AMReX_REAL.H>
78

89
#include <sstream>
910
#include <string>
@@ -194,10 +195,10 @@ void init_Geometry(py::module& m)
194195
.def("setPeriodicity", &Geometry::setPeriodicity)
195196
.def("coarsen", &Geometry::coarsen)
196197
.def("refine", &Geometry::refine)
197-
.def("outsideRoundOffDomain", py::overload_cast<AMREX_D_DECL(Real, Real, Real)>
198+
.def("outsideRoundOffDomain", py::overload_cast<AMREX_D_DECL(ParticleReal, ParticleReal, ParticleReal)>
198199
(&Geometry::outsideRoundoffDomain, py::const_),
199200
"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()")
200-
.def("insideRoundOffDomain", py::overload_cast<AMREX_D_DECL(Real, Real, Real)>
201+
.def("insideRoundOffDomain", py::overload_cast<AMREX_D_DECL(ParticleReal, ParticleReal, ParticleReal)>
201202
(&Geometry::insideRoundoffDomain, py::const_),
202203
"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()")
203204

0 commit comments

Comments
 (0)