Ensure default ALQ is set for all production wells on all processes

This commit is contained in:
Vegard Kippe 2024-08-15 15:11:30 +02:00
parent e548bbfd9d
commit 9dc5272ecc

View File

@ -424,7 +424,9 @@ void WellState<Scalar>::init(const std::vector<Scalar>& 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<class Scalar>