mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-03 23:50:26 -06:00
Do not extrapolate initial rs and rv values in the depth tables
This commit is contained in:
parent
d1469bd39e
commit
289a15f0e5
@ -273,7 +273,7 @@ namespace Opm
|
|||||||
if (sat_gas > 0.0) {
|
if (sat_gas > 0.0) {
|
||||||
return satRs(press, temp);
|
return satRs(press, temp);
|
||||||
} else {
|
} else {
|
||||||
return std::min(satRs(press, temp), linearInterpolation(depth_, rs_, depth));
|
return std::min(satRs(press, temp), linearInterpolationNoExtrapolation(depth_, rs_, depth));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -353,7 +353,7 @@ namespace Opm
|
|||||||
if (std::abs(sat_oil) > 1e-16) {
|
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), linearInterpolationNoExtrapolation(depth_, rv_, depth));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user