From aec04ad208b37dff77428d47036841fcc22ba92e Mon Sep 17 00:00:00 2001 From: Ben Ryan Date: Tue, 24 Sep 2024 09:57:03 -0600 Subject: [PATCH] style --- src/utils/robust.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/robust.hpp b/src/utils/robust.hpp index 77be1743b146..4285f53b352a 100644 --- a/src/utils/robust.hpp +++ b/src/utils/robust.hpp @@ -65,10 +65,10 @@ KOKKOS_INLINE_FUNCTION auto ratio(const A &a, const B &b) { // Optionally return true if reference value is close to zero KOKKOS_FORCEINLINE_FUNCTION bool SoftEquiv(const Real &val, const Real &ref, - const Real eps = 10. * std::numeric_limits::epsilon(), - const bool pass_on_small = true) { - return ((std::fabs(val - ref) < eps * std::fabs(ref)) - || ((std::fabs(ref) ::min()) && pass_on_small)); + const Real eps = 10. * std::numeric_limits::epsilon(), + const bool pass_on_small = true) { + return ((std::fabs(val - ref) < eps * std::fabs(ref)) || + ((std::fabs(ref) < std::numeric_limits::min()) && pass_on_small)); } } // namespace robust