correct wrong flag for reservoir rate constraint calculation

This commit is contained in:
Paul 2023-06-05 11:49:20 +02:00
parent 20e2058333
commit 83c23b123a

View File

@ -311,13 +311,13 @@ checkGroupProductionConstraints(const Group& group,
double current_rate = 0.0;
current_rate += WellGroupHelpers::sumWellResRates(group, wellModel_.schedule(),
well_state, reportStepIdx,
pu.phase_pos[BlackoilPhases::Aqua], true);
pu.phase_pos[BlackoilPhases::Aqua], false);
current_rate += WellGroupHelpers::sumWellResRates(group, wellModel_.schedule(),
well_state, reportStepIdx,
pu.phase_pos[BlackoilPhases::Liquid], true);
pu.phase_pos[BlackoilPhases::Liquid], false);
current_rate += WellGroupHelpers::sumWellResRates(group, wellModel_.schedule(),
well_state, reportStepIdx,
pu.phase_pos[BlackoilPhases::Vapour], true);
pu.phase_pos[BlackoilPhases::Vapour], false);
// sum over all nodes
current_rate = wellModel_.comm().sum(current_rate);