From 5674635125ba1f1021c63be977b9296b94e54893 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 26 Oct 2015 11:21:26 +0100 Subject: [PATCH] fix Equilibration test by adding some fuzz Backports parts of a7b1e69a45c14ec88a82b92ee704424f1ea1b41c --- opm/core/simulator/EquilibrationHelpers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/simulator/EquilibrationHelpers.hpp b/opm/core/simulator/EquilibrationHelpers.hpp index 2ea49e59e..8619cf640 100644 --- a/opm/core/simulator/EquilibrationHelpers.hpp +++ b/opm/core/simulator/EquilibrationHelpers.hpp @@ -350,7 +350,7 @@ namespace Opm const double temp, const double sat_oil = 0.0 ) const { - if (sat_oil > 0.0) { + if (std::abs(sat_oil) > 1e-16) { return satRv(press, temp); } else { return std::min(satRv(press, temp), linearInterpolation(depth_, rv_, depth));