Changed default for relperm to not set.

This commit is contained in:
Halvor M. Nilsen 2012-06-20 13:11:13 +02:00
parent ace7ebeed9
commit ccbc1d83d5

View File

@ -113,9 +113,12 @@ namespace Opm
THROW("SaturationPropsBasic::init() illegal 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") {
relperm_func_ = Constant;
if(num_phases!=1){
THROW("Constant relperm with more than one phase???");
}
} else if (rpf == "Linear") {
relperm_func_ = Linear;
} else if (rpf == "Quadratic") {