mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-30 13:03:49 -06:00
ebos: treat wells with an undefined control mode as shut
this happens in Norne...
This commit is contained in:
parent
95334957e0
commit
2bf24ca74b
@ -208,8 +208,10 @@ public:
|
||||
"Not implemented: Well groups");
|
||||
|
||||
case Opm::WellInjector::CMODE_UNDEFINED:
|
||||
OPM_THROW(std::runtime_error,
|
||||
"Control mode of well " << well->name() << " is undefined.");
|
||||
std::cout << "Warning: Control mode of injection well " << well->name()
|
||||
<< " is undefined. Assuming well to be shut.";
|
||||
well->setWellStatus(Well::WellStatus::Shut);
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (injectProperties.injectorType) {
|
||||
@ -293,8 +295,10 @@ public:
|
||||
"Not implemented: Well groups");
|
||||
|
||||
case Opm::WellProducer::CMODE_UNDEFINED:
|
||||
OPM_THROW(std::runtime_error,
|
||||
"Control mode of well " << well->name() << " is undefined.");
|
||||
std::cout << "Warning: Control mode of production well " << well->name()
|
||||
<< " is undefined. Assuming well to be shut.";
|
||||
well->setWellStatus(Well::WellStatus::Shut);
|
||||
continue;
|
||||
}
|
||||
|
||||
well->setTargetBottomHolePressure(producerProperties.BHPLimit);
|
||||
|
Loading…
Reference in New Issue
Block a user