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());