From 1e34d714bf8e566cbcea73996ea3ad16b7fe37ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Mon, 1 Nov 2021 10:40:24 +0100 Subject: [PATCH] Report Well Level Production Guide Rates if Group Controlled This commit extends the guide rate reporting to always extracting and reporting pertinent production guide rates at the well level (i.e., WxPGR) if at least one of the groups in the well's upline has an entry in GCONPROD. This is for increased compatibility with ECLIPSE. --- opm/simulators/wells/BlackoilWellModelGeneric.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModelGeneric.cpp b/opm/simulators/wells/BlackoilWellModelGeneric.cpp index 19ad8bfa6..0468eccca 100644 --- a/opm/simulators/wells/BlackoilWellModelGeneric.cpp +++ b/opm/simulators/wells/BlackoilWellModelGeneric.cpp @@ -122,8 +122,14 @@ namespace { const Opm::Group& group) : RetrieveWellGuideRate{ guideRate, group.name() } { - this->inj_water = this->inj_water || group.hasInjectionControl(Opm::Phase::WATER); - this->inj_gas = this->inj_gas || group.hasInjectionControl(Opm::Phase::GAS); + if (group.isProductionGroup()) { + this->prod = true; + } + + if (group.isInjectionGroup()) { + this->inj_water = this->inj_water || group.hasInjectionControl(Opm::Phase::WATER); + this->inj_gas = this->inj_gas || group.hasInjectionControl(Opm::Phase::GAS); + } } class GroupTreeWalker