mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-10 00:13:01 -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:
|
case Opm::WellInjector::GRUP:
|
||||||
OPM_THROW(std::runtime_error,
|
OPM_THROW(std::runtime_error,
|
||||||
"Not implemented: Well groups");
|
"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) {
|
switch (injectProperties.injectorType) {
|
||||||
@ -281,6 +285,10 @@ public:
|
|||||||
case Opm::WellProducer::GRUP:
|
case Opm::WellProducer::GRUP:
|
||||||
OPM_THROW(std::runtime_error,
|
OPM_THROW(std::runtime_error,
|
||||||
"Not implemented: Well groups");
|
"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);
|
well->setTargetBottomHolePressure(producerProperties.BHPLimit);
|
||||||
|
Loading…
Reference in New Issue
Block a user