From 53fa09db208fe1d7abf696eeb87fa82696336483 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 11 Aug 2023 18:30:04 -0700 Subject: [PATCH] Geometry: Fix Mixed Precision Builds Use the correct floating point type. --- src/Base/Geometry.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Base/Geometry.cpp b/src/Base/Geometry.cpp index 9b302325..2cb1bc2c 100644 --- a/src/Base/Geometry.cpp +++ b/src/Base/Geometry.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -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 + .def("outsideRoundOffDomain", py::overload_cast (&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 + .def("insideRoundOffDomain", py::overload_cast (&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()")