mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Complain less about missing operability checking.
Do not give a warning for production wells or history wells, respect the EnableWellOperabilityCheck flag. This is identical to the behaviour of StandardWell. There will now only be a warning for producers in prediction mode.
This commit is contained in:
parent
c8e1f61050
commit
a89e8f6457
@ -2592,6 +2592,20 @@ namespace Opm
|
|||||||
const WellState& /* well_state */,
|
const WellState& /* well_state */,
|
||||||
Opm::DeferredLogger& deferred_logger)
|
Opm::DeferredLogger& deferred_logger)
|
||||||
{
|
{
|
||||||
|
const bool checkOperability = EWOMS_GET_PARAM(TypeTag, bool, EnableWellOperabilityCheck);
|
||||||
|
if (!checkOperability) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// focusing on PRODUCER for now
|
||||||
|
if (this->isInjector()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this->underPredictionMode() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const std::string msg = "Support of well operability checking for multisegment wells is not implemented "
|
const std::string msg = "Support of well operability checking for multisegment wells is not implemented "
|
||||||
"yet, checkWellOperability() for " + name() + " will do nothing";
|
"yet, checkWellOperability() for " + name() + " will do nothing";
|
||||||
deferred_logger.warning("NO_OPERATABILITY_CHECKING_MS_WELLS", msg);
|
deferred_logger.warning("NO_OPERATABILITY_CHECKING_MS_WELLS", msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user