From 74d7871090206a0eed3a578847153cd46bd95b66 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Tue, 1 Apr 2025 10:48:18 +0200 Subject: [PATCH] Use well rates from well_state_nupcol instead of previous_well_state in updateWellRates --- opm/simulators/wells/BlackoilWellModelGeneric.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModelGeneric.cpp b/opm/simulators/wells/BlackoilWellModelGeneric.cpp index ac2d84b6c3..b01a87d2f2 100644 --- a/opm/simulators/wells/BlackoilWellModelGeneric.cpp +++ b/opm/simulators/wells/BlackoilWellModelGeneric.cpp @@ -1384,11 +1384,10 @@ updateAndCommunicateGroupData(const int reportStepIdx, well_state_nupcol, this->groupState()); - // We use the rates from the previous time-step to reduce oscillations WellGroupHelpers::updateWellRates(fieldGroup, schedule(), reportStepIdx, - this->prevWellState(), + well_state_nupcol, well_state); // Set ALQ for off-process wells to zero