diff --git a/test/compare_to_eospac.cpp b/test/compare_to_eospac.cpp index 5a4bfeb51cd..e1deb92fecc 100644 --- a/test/compare_to_eospac.cpp +++ b/test/compare_to_eospac.cpp @@ -547,7 +547,7 @@ int main(int argc, char *argv[]) { Real diff = tempSpiner_h(j, i) - t_true; tempDiff_h(j, i) = diff; const Real mean_t = 0.5 * diff + t_true; - if (isnan(diff)) { + if (std::isnan(diff)) { std::cout << "NAN! " << j << ", " << i << ", " << tempSpiner_h(j, i) << ", " << tempEOSPAC(j, i) << ", " << mean_t << ", " << diff << std::endl; diff --git a/test/eos_unit_test_helpers.hpp b/test/eos_unit_test_helpers.hpp index 3083ae48602..e11e6a7c72e 100644 --- a/test/eos_unit_test_helpers.hpp +++ b/test/eos_unit_test_helpers.hpp @@ -59,11 +59,11 @@ inline std::string demangle(const char *name) { return name; } #include PORTABLE_INLINE_FUNCTION bool isClose(Real a, Real b, Real eps = 5e-2) { - return fabs(b - a) / (fabs(a + b) + 1e-20) <= eps; + return std::abs(b - a) / (std::abs(a + b) + 1e-20) <= eps; } PORTABLE_INLINE_FUNCTION Real myAtan(Real x, Real shift, Real scale, Real offset) { - return scale * atan(x - shift) + offset; + return scale * std::atan(x - shift) + offset; } // Function for comparing arrays and outputting the important information