Do not extrapolate initial rs and rv values in the depth tables

This commit is contained in:
Tor Harald Sandve 2017-03-16 12:33:43 +01:00
parent d1469bd39e
commit 289a15f0e5

View File

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