change the defaults for pvt_tab_size and sat_tab_size to -1

this causes the code to use linear instead of spline
interpolation. thanks to @atgeirr for pointing this out..
This commit is contained in:
Andreas Lauser 2014-09-03 14:38:43 +02:00
parent 8a8c71bc63
commit da25fb699d

View File

@ -85,11 +85,11 @@ namespace Opm
rock_.init(eclState, number_of_cells, global_cell, cart_dims);
}
const int pvt_samples = param.getDefault("pvt_tab_size", 200);
const int pvt_samples = param.getDefault("pvt_tab_size", -1);
pvt_.init(deck, pvt_samples);
// Unfortunate lack of pointer smartness here...
const int sat_samples = param.getDefault("sat_tab_size", 200);
const int sat_samples = param.getDefault("sat_tab_size", -1);
std::string threephase_model = param.getDefault<std::string>("threephase_model", "gwseg");
if (deck->hasKeyword("ENDSCALE") && threephase_model != "gwseg") {
OPM_THROW(std::runtime_error, "Sorry, end point scaling currently available for the 'gwseg' model only.");