Fix issue with stopped injectors in thermal runs

This commit is contained in:
Tor Harald Sandve 2024-09-13 08:51:52 +02:00
parent 03795d5b23
commit 9eaba103cc

View File

@ -2602,7 +2602,7 @@ namespace Opm
} }
// change temperature for injecting fluids // 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 // only handles single phase injection now
assert(this->well_ecl_.injectorType() != InjectorType::MULTI); assert(this->well_ecl_.injectorType() != InjectorType::MULTI);
fs.setTemperature(this->well_ecl_.inj_temperature()); fs.setTemperature(this->well_ecl_.inj_temperature());