From 9461bf1a998555d3382bae6e33a51816d8015c70 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Thu, 6 Oct 2022 13:37:24 +0200 Subject: [PATCH] only enforcing production economic limit to producers. --- opm/simulators/wells/WellInterfaceFluidSystem.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opm/simulators/wells/WellInterfaceFluidSystem.cpp b/opm/simulators/wells/WellInterfaceFluidSystem.cpp index 6ff791122..c87825fe0 100644 --- a/opm/simulators/wells/WellInterfaceFluidSystem.cpp +++ b/opm/simulators/wells/WellInterfaceFluidSystem.cpp @@ -725,6 +725,11 @@ updateWellTestStateEconomic(const SingleWellState& ws, return; } + if (this->isInjector()) { + deferred_logger.warning("ECON_LIMITS_INJECTOR_" + this->name(), this->name() + " is an injector, the production economic limits for this well will be ignored.\n"); + return; + } + // flag to check if the mim oil/gas rate limit is violated bool rate_limit_violated = false;