From 1f78064b75de91095da1053388cf92367310912d Mon Sep 17 00:00:00 2001 From: hnil Date: Mon, 16 Sep 2024 10:41:51 +0200 Subject: [PATCH] fixed errors in merging --- opm/simulators/wells/BlackoilWellModel_impl.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index 7953dd5e2cd..b2dff1b6a67 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -2739,7 +2739,7 @@ namespace Opm { auto& ws = this->wellState().well(wellID); if (well.isInjector()){ if( !(ws.status == WellStatus::STOP)){ - this->wellState().well(wellID).temperature = well.temperature(); + this->wellState().well(wellID).temperature = well.inj_temperature(); continue; } } @@ -2772,8 +2772,7 @@ namespace Opm { perfPhaseRate = perf_phase_rate[ perf*np + phaseIdx ]; weight_factor += cellDensity * perfPhaseRate/cellBinv * cellInternalEnergy/cellTemperatures; } - //NB hack better method in progress - weight_factor = std::abs(weightfactor)+1e-13; + weight_factor = std::abs(weight_factor)+1e-13; total_weight += weight_factor; weighted_temperature += weight_factor * cellTemperatures; }