From 2ca3c25f4fa7bdb6d912609cb6e664a3a274090d Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 10 Oct 2022 08:14:42 +0200 Subject: [PATCH] set alq before trying to solve the equation during well testing --- opm/simulators/wells/WellInterface_impl.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/opm/simulators/wells/WellInterface_impl.hpp b/opm/simulators/wells/WellInterface_impl.hpp index f4413da2d..09267fc44 100644 --- a/opm/simulators/wells/WellInterface_impl.hpp +++ b/opm/simulators/wells/WellInterface_impl.hpp @@ -319,6 +319,10 @@ namespace Opm updatePrimaryVariables(well_state_copy, deferred_logger); initPrimaryVariablesEvaluation(); + if (this->isProducer()) { + gliftBeginTimeStepWellTestUpdateALQ(simulator, well_state_copy, deferred_logger); + } + WellTestState welltest_state_temp; bool testWell = true; @@ -334,9 +338,7 @@ namespace Opm return; } - if (this->isProducer()) { - gliftBeginTimeStepWellTestUpdateALQ(simulator, well_state_copy, deferred_logger); - } + updateWellOperability(simulator, well_state_copy, deferred_logger); if ( !this->isOperableAndSolvable() ) { const auto msg = fmt::format("WTEST: Well {} is not operable (physical)", this->name());