From 5ee75c45e309ff68942f6cb8e70462b0764156d2 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Tue, 5 Jan 2021 15:10:40 +0100 Subject: [PATCH] move well operability check for STW --- opm/simulators/wells/StandardWell_impl.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/opm/simulators/wells/StandardWell_impl.hpp b/opm/simulators/wells/StandardWell_impl.hpp index ab94038c9..04003e91b 100644 --- a/opm/simulators/wells/StandardWell_impl.hpp +++ b/opm/simulators/wells/StandardWell_impl.hpp @@ -547,6 +547,8 @@ namespace Opm WellState& well_state, Opm::DeferredLogger& deferred_logger) { + checkWellOperability(ebosSimulator, well_state, deferred_logger); + const bool use_inner_iterations = param_.use_inner_iterations_wells_; if (use_inner_iterations) { this->iterateWellEquations(ebosSimulator, B_avg, dt, well_state, deferred_logger); @@ -574,9 +576,6 @@ namespace Opm { // TODO: only_wells should be put back to save some computation // for example, the matrices B C does not need to update if only_wells - - checkWellOperability(ebosSimulator, well_state, deferred_logger); - if (!this->isOperable() && !this->wellIsStopped()) return; // clear all entries