mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
fix Equilibration test by adding some fuzz
Backports parts of a7b1e69a45c14ec88a82b92ee704424f1ea1b41c
This commit is contained in:
parent
c65ad8292b
commit
5674635125
@ -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