From 252d08f1bdc091db510b5d0f01feaac9263b2afc Mon Sep 17 00:00:00 2001 From: Stein Krogstad Date: Wed, 7 Jun 2023 15:45:27 +0200 Subject: [PATCH] No need to loop over phases here --- opm/simulators/wells/WellInterface_impl.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/opm/simulators/wells/WellInterface_impl.hpp b/opm/simulators/wells/WellInterface_impl.hpp index 1b90e4392..8aed0d068 100644 --- a/opm/simulators/wells/WellInterface_impl.hpp +++ b/opm/simulators/wells/WellInterface_impl.hpp @@ -1198,16 +1198,11 @@ namespace Opm setPrevSurfaceRates(WellState& well_state, const WellState& prev_well_state) const { - const int np = this->number_of_phases_; auto& ws = well_state.well(this->index_of_well_); if (!this->changedToOpenThisStep()){ - for (int p = 0; pindex_of_well_).surface_rates[p]; - } + ws.prev_surface_rates = prev_well_state.well(this->index_of_well_).surface_rates; } else { - for (int p = 0; p