From d20641d97bd66b8e32e753f235265acddf77452f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Mon, 7 Dec 2020 10:05:46 +0100 Subject: [PATCH] Only modify initial rates for producers. --- opm/simulators/wells/BlackoilWellModel_impl.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index dca9fbcaa..f66e5e1b9 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -396,9 +396,14 @@ namespace Opm { } if (alternative_well_rate_init_) { - // Update the well rates to match state, if only single-phase rates. + // Update the well rates of well_state_, if only single-phase rates, to + // have proper multi-phase rates proportional to rates at bhp zero. + // This is done only for producers, as injectors will only have a single + // nonzero phase anyway. for (auto& well : well_container_) { - well->updateWellStateRates(ebosSimulator_, well_state_, local_deferredLogger); + if (well->isProducer()) { + well->updateWellStateRates(ebosSimulator_, well_state_, local_deferredLogger); + } } }