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.
This commit is contained in:
Bård Skaflestad 2021-11-01 10:40:24 +01:00
parent 0c70eac490
commit 1e34d714bf

View File

@ -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