From 9db6b2b9461347c9d1df10ea0d6807c3c2280bdf Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Thu, 26 Aug 2021 08:21:30 +0200 Subject: [PATCH] handle unoperable wells set potentials and rates to zero --- opm/simulators/wells/WellInterface_impl.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/opm/simulators/wells/WellInterface_impl.hpp b/opm/simulators/wells/WellInterface_impl.hpp index 68e8cce20..47fcfde32 100644 --- a/opm/simulators/wells/WellInterface_impl.hpp +++ b/opm/simulators/wells/WellInterface_impl.hpp @@ -608,11 +608,12 @@ namespace Opm const auto& summaryState = ebos_simulator.vanguard().summaryState(); const auto& schedule = ebos_simulator.vanguard().schedule(); - if (this->wellIsStopped()) { + if (this->wellIsStopped() || !this->isOperable()) { for (int p = 0; p