added throw when wrong saturation family is specified
This commit is contained in:
parent
fc2524a57a
commit
d2d86e250b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user