Change the extrapolation in the livegas pvts

The special extrapolation for pressure values above
the maximum table value is removed to sync with Mrst
This commit is contained in:
Tor Harald Sandve 2014-01-10 13:45:28 +01:00
parent ed9e4e376a
commit 292b74e189

View File

@ -461,12 +461,12 @@ namespace Opm
}
// Extrapolate from last table section
int ltp = saturated_gas_table_[0].size() - 1;
if (is+1 == ltp && press > saturated_gas_table_[0][ltp]) {
return linearInterpolation(undersat_gas_tables_[ltp][0],
undersat_gas_tables_[ltp][item],
r);
}
//int ltp = saturated_gas_table_[0].size() - 1;
//if (is+1 == ltp && press > saturated_gas_table_[0][ltp]) {
// return linearInterpolation(undersat_gas_tables_[ltp][0],
// undersat_gas_tables_[ltp][item],
// r);
//}
// Interpolate between table sections
double w = (press - saturated_gas_table_[0][is]) /