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:
Atgeirr Flø Rasmussen 2019-12-13 11:00:01 +01:00
parent c8e1f61050
commit a89e8f6457

View File

@ -2592,6 +2592,20 @@ namespace Opm
const WellState& /* well_state */,
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 "
"yet, checkWellOperability() for " + name() + " will do nothing";
deferred_logger.warning("NO_OPERATABILITY_CHECKING_MS_WELLS", msg);