Merge pull request #915 from akva2/fix_equil

fix Equilibration test by adding some fuzz
This commit is contained in:
Atgeirr Flø Rasmussen 2015-10-26 12:43:42 +01:00
commit 21412edc97

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));