fix group prod

This commit is contained in:
Tor Harald Sandve 2019-11-05 15:04:26 +01:00
parent bc71341462
commit 485bbfe010
2 changed files with 4 additions and 4 deletions

View File

@ -2098,11 +2098,11 @@ namespace Opm
const auto& well = well_ecl_;
const auto pu = phaseUsage();
if (!group.isProductionGroup())
const Group2::ProductionCMode& currentGroupControl = well_state.currentProductionGroupControl(group.name());
if (!group.isProductionGroup() && currentGroupControl != Group2::ProductionCMode::FLD)
return;
const auto& groupcontrols = group.productionControls(summaryState);
const Group2::ProductionCMode& currentGroupControl = well_state.currentProductionGroupControl(group.name());
switch(currentGroupControl) {
case Group2::ProductionCMode::NONE:

View File

@ -1077,11 +1077,11 @@ namespace Opm
const auto& well = well_ecl_;
const auto pu = phaseUsage();
if (!group.isProductionGroup())
const Group2::ProductionCMode& currentGroupControl = well_state.currentProductionGroupControl(group.name());
if (!group.isProductionGroup() && currentGroupControl != Group2::ProductionCMode::FLD)
return;
const auto& groupcontrols = group.productionControls(summaryState);
const Group2::ProductionCMode& currentGroupControl = well_state.currentProductionGroupControl(group.name());
switch(currentGroupControl) {
case Group2::ProductionCMode::NONE: