fix Equilibration test by adding some fuzz

Backports parts of a7b1e69a45c14ec88a82b92ee704424f1ea1b41c
This commit is contained in:
Arne Morten Kvarving 2015-10-26 11:21:26 +01:00 committed by Andreas Lauser
parent 20fb005c24
commit f65663ffd7

View File

@ -350,7 +350,7 @@ namespace Opm
const double temp, const double temp,
const double sat_oil = 0.0 ) const const double sat_oil = 0.0 ) const
{ {
if (sat_oil > 0.0) { if (std::abs(sat_oil) > 1e-16) {
return satRv(press, temp); return satRv(press, temp);
} else { } else {
return std::min(satRv(press, temp), linearInterpolation(depth_, rv_, depth)); return std::min(satRv(press, temp), linearInterpolation(depth_, rv_, depth));