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 committed by Andreas Lauser
parent 30030eaac7
commit 5a9827f7fe

View File

@ -273,7 +273,7 @@ namespace Opm
if (sat_gas > 0.0) {
return satRs(press, temp);
} 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) {
return satRv(press, temp);
} else {
return std::min(satRv(press, temp), linearInterpolation(depth_, rv_, depth));
return std::min(satRv(press, temp), linearInterpolationNoExtrapolation(depth_, rv_, depth));
}
}