added throw when wrong saturation family is specified

This commit is contained in:
Paul Egberts 2021-03-22 09:59:21 +01:00
parent fc2524a57a
commit d2d86e250b

View File

@ -968,8 +968,7 @@ private:
switch (eclState.runspec().saturationFunctionControls().family()) {
case SatFuncControls::KeywordFamily::Family_I:
{
// No Family I applicable in this case
break;
throw std::domain_error("Saturation keyword family I is not applicable for a gas-water system");
}
case SatFuncControls::KeywordFamily::Family_II: