From 6c4512be124474f1a4cf8838c730dd795a4aca12 Mon Sep 17 00:00:00 2001 From: Vegard Kippe Date: Wed, 16 Oct 2024 12:08:37 +0200 Subject: [PATCH] Fix MPI restart issue (test failures for some oil-water cases) --- opm/simulators/wells/WellState.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/opm/simulators/wells/WellState.cpp b/opm/simulators/wells/WellState.cpp index fe923c1b1..1bff06b29 100644 --- a/opm/simulators/wells/WellState.cpp +++ b/opm/simulators/wells/WellState.cpp @@ -272,6 +272,7 @@ void WellState::init(const std::vector& cellPressures, this->global_well_info = std::make_optional(schedule, report_step, wells_ecl); + well_rates.clear(); for (const auto& wname : schedule.wellNames(report_step)) { well_rates.insert({wname, std::make_pair(false, std::vector(this->numPhases()))});