Fix MPI restart issue (test failures for some oil-water cases)

This commit is contained in:
Vegard Kippe 2024-10-16 12:08:37 +02:00
parent 4bc904d941
commit 6c4512be12

View File

@ -272,6 +272,7 @@ void WellState<Scalar>::init(const std::vector<Scalar>& cellPressures,
this->global_well_info = std::make_optional<GlobalWellInfo>(schedule, this->global_well_info = std::make_optional<GlobalWellInfo>(schedule,
report_step, report_step,
wells_ecl); wells_ecl);
well_rates.clear();
for (const auto& wname : schedule.wellNames(report_step)) for (const auto& wname : schedule.wellNames(report_step))
{ {
well_rates.insert({wname, std::make_pair(false, std::vector<Scalar>(this->numPhases()))}); well_rates.insert({wname, std::make_pair(false, std::vector<Scalar>(this->numPhases()))});