Skip to content

Commit

Permalink
fixed errors in merging
Browse files Browse the repository at this point in the history
  • Loading branch information
hnil committed Sep 16, 2024
1 parent eb1b2c6 commit 1f78064
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions opm/simulators/wells/BlackoilWellModel_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 1f78064

Please sign in to comment.