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:
parent
8a8c71bc63
commit
da25fb699d
@ -85,11 +85,11 @@ namespace Opm
|
|||||||
rock_.init(eclState, number_of_cells, global_cell, cart_dims);
|
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);
|
pvt_.init(deck, pvt_samples);
|
||||||
|
|
||||||
// Unfortunate lack of pointer smartness here...
|
// 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");
|
std::string threephase_model = param.getDefault<std::string>("threephase_model", "gwseg");
|
||||||
if (deck->hasKeyword("ENDSCALE") && 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.");
|
OPM_THROW(std::runtime_error, "Sorry, end point scaling currently available for the 'gwseg' model only.");
|
||||||
|
Loading…
Reference in New Issue
Block a user