diff --git a/opm/core/simulator/EquilibrationHelpers.hpp b/opm/core/simulator/EquilibrationHelpers.hpp index 9b0626646..f7c764355 100644 --- a/opm/core/simulator/EquilibrationHelpers.hpp +++ b/opm/core/simulator/EquilibrationHelpers.hpp @@ -871,7 +871,7 @@ namespace Opm const PcEq f(props, phase, cell, 0); const double f0 = f(sminarr[phase]); const double f1 = f(smaxarr[phase]); - return std::abs(f0 - f1 < std::numeric_limits::epsilon()); + return std::abs(f0 - f1) < std::numeric_limits::epsilon(); } } // namespace Equil