mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-23 07:53:29 -06:00
Changed default for relperm to not set.
This commit is contained in:
parent
ace7ebeed9
commit
ccbc1d83d5
@ -113,9 +113,12 @@ namespace Opm
|
|||||||
THROW("SaturationPropsBasic::init() illegal num_phases: " << num_phases);
|
THROW("SaturationPropsBasic::init() illegal num_phases: " << num_phases);
|
||||||
}
|
}
|
||||||
num_phases_ = num_phases;
|
num_phases_ = num_phases;
|
||||||
std::string rpf = param.getDefault("relperm_func", std::string("Linear"));
|
std::string rpf = param.getDefault("relperm_func", std::string("Unset"));
|
||||||
if (rpf == "Constant") {
|
if (rpf == "Constant") {
|
||||||
relperm_func_ = Constant;
|
relperm_func_ = Constant;
|
||||||
|
if(num_phases!=1){
|
||||||
|
THROW("Constant relperm with more than one phase???");
|
||||||
|
}
|
||||||
} else if (rpf == "Linear") {
|
} else if (rpf == "Linear") {
|
||||||
relperm_func_ = Linear;
|
relperm_func_ = Linear;
|
||||||
} else if (rpf == "Quadratic") {
|
} else if (rpf == "Quadratic") {
|
||||||
|
Loading…
Reference in New Issue
Block a user