From 9eaba103cc542c338131cf4cf0e41916f2431c00 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Fri, 13 Sep 2024 08:51:52 +0200 Subject: [PATCH] Fix issue with stopped injectors in thermal runs --- opm/simulators/wells/StandardWell_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/StandardWell_impl.hpp b/opm/simulators/wells/StandardWell_impl.hpp index 77d80af97..ed8b31360 100644 --- a/opm/simulators/wells/StandardWell_impl.hpp +++ b/opm/simulators/wells/StandardWell_impl.hpp @@ -2602,7 +2602,7 @@ namespace Opm } // change temperature for injecting fluids - if (this->isInjector() && cq_s[activeCompIdx] > 0.0){ + if (this->isInjector() && !this->wellIsStopped() && cq_s[activeCompIdx] > 0.0){ // only handles single phase injection now assert(this->well_ecl_.injectorType() != InjectorType::MULTI); fs.setTemperature(this->well_ecl_.inj_temperature());