mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-09 16:03:02 -06:00
ECL well model: handle the newish CMODE_UNDEFINED enum values
This commit is contained in:
parent
66abdce594
commit
1d18473404
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user