added safer but potentially extra calls to update primaryvariables

This commit is contained in:
Halvor M Nilsen 2025-02-10 12:14:58 +01:00
parent 5181a06219
commit 7de7f13725

View File

@ -845,6 +845,11 @@ namespace Opm
DeferredLogger& deferred_logger)
{
OPM_TIMEFUNCTION();
<<<<<<< Updated upstream
=======
updatePrimaryVariables(simulator, well_state, deferred_logger);
initPrimaryVariablesEvaluation();
>>>>>>> Stashed changes
const bool old_well_operable = this->operability_status_.isOperableAndSolvable();
if (this->param_.check_well_operability_iter_)
@ -1165,6 +1170,7 @@ namespace Opm
ws.surface_rates[p] = 0;
}
ws.thp = 0;
updatePrimaryVariables(simulator, well_state, deferred_logger);
return;
}
@ -1519,6 +1525,7 @@ namespace Opm
ws.bhp = controls.bhp_limit;
}
}
updatePrimaryVariables(simulator, well_state, deferred_logger);
}
template<typename TypeTag>