diff --git a/opm/simulators/wells/WellState.cpp b/opm/simulators/wells/WellState.cpp index 2e8cde496..3e84a5b69 100644 --- a/opm/simulators/wells/WellState.cpp +++ b/opm/simulators/wells/WellState.cpp @@ -424,7 +424,9 @@ void WellState::init(const std::vector& cellPressures, } } - updateWellsDefaultALQ(wells_ecl, summary_state); + // ALQ state needs to be defined for all wells, otherwise alqstate.packSize() will be different + // on each process, and the comm.sum call in communicateGroupRates will fail. + updateWellsDefaultALQ(schedule.getWells(report_step), summary_state); } template