ECL well model: handle the newish CMODE_UNDEFINED enum values

This commit is contained in:
Andreas Lauser 2014-11-18 17:40:38 +01:00
parent 66abdce594
commit 1d18473404

View File

@ -200,6 +200,10 @@ public:
case Opm::WellInjector::GRUP:
OPM_THROW(std::runtime_error,
"Not implemented: Well groups");
case Opm::WellInjector::CMODE_UNDEFINED:
OPM_THROW(std::runtime_error,
"Control mode of well " << well->name() << " is undefined.");
}
switch (injectProperties.injectorType) {
@ -281,6 +285,10 @@ public:
case Opm::WellProducer::GRUP:
OPM_THROW(std::runtime_error,
"Not implemented: Well groups");
case Opm::WellProducer::CMODE_UNDEFINED:
OPM_THROW(std::runtime_error,
"Control mode of well " << well->name() << " is undefined.");
}
well->setTargetBottomHolePressure(producerProperties.BHPLimit);