Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion opm/simulators/flow/FlowProblem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,11 @@ class FlowProblem : public GetPropType<TypeTag, Properties::BaseProblem>
}
}

// Drift compensation needs to be updated before calling the temperature equation
// For sequential implicit thermal: finalize TEMP solve,
// then refresh cached intensive quantities (temperature-dependent).
if constexpr(energyModuleType == EnergyModules::SequentialImplicitThermal) {
this->temperatureModel_.endTimeStep(wellModel_.wellState());
this->model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0);
}
}

Expand Down