mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-30 13:03:49 -06:00
fix Equilibration test by adding some fuzz
Backports parts of a7b1e69a45c14ec88a82b92ee704424f1ea1b41c
This commit is contained in:
parent
20fb005c24
commit
f65663ffd7
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user