From 7c8a39fdb6e1cbd16ff010d88bdae90349565672 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Tue, 24 Aug 2021 10:33:19 +0200 Subject: [PATCH] fix after rebase --- opm/simulators/wells/StandardWell_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/wells/StandardWell_impl.hpp b/opm/simulators/wells/StandardWell_impl.hpp index eb4b1004c..035e0323a 100644 --- a/opm/simulators/wells/StandardWell_impl.hpp +++ b/opm/simulators/wells/StandardWell_impl.hpp @@ -1700,7 +1700,7 @@ namespace Opm const double sign = well_ecl_.isInjector() ? 1.0 : -1.0; for (int phase = 0; phase < np; ++phase){ well_state_copy.wellRates(index_of_well_)[phase] - = sign * well_state_copy.wellPotentials(index_of_well_)[phase]; + = sign * ws.well_potentials[phase]; } // creating a copy of the well itself, to avoid messing up the explicit informations // during this copy, the only information not copied properly is the well controls @@ -1711,7 +1711,7 @@ namespace Opm bool converged = well.iterateWellEquations(ebosSimulator, dt, well_state_copy, group_state, deferred_logger); if (!converged) { const std::string msg = " well " + name() + " did not get converged during well potential calculations " - " potentials are computed based on uncoverged solution"; + " potentials are computed based on unconverged solution"; deferred_logger.debug(msg); } well.updatePrimaryVariables(well_state_copy, deferred_logger);