mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-04 13:36:57 -06:00
correct wrong flag for reservoir rate constraint calculation
This commit is contained in:
parent
20e2058333
commit
83c23b123a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user