Merge pull request #5902 from totto82/wcycle_chop

Dont reset subtimestep from tuning/wcycle if time step is chopped due  to convergence issues
This commit is contained in:
Tor Harald Sandve
2025-01-28 10:00:58 +01:00
committed by GitHub

View File

@@ -749,7 +749,11 @@ run()
// sub step time loop
while (!this->substep_timer_.done()) {
maybeUpdateTuningAndTimeStep_();
// if we just chopped the timestep due to convergence i.e. restarts>0
// we dont what to update the next timestep based on Tuning
if (restarts == 0) {
maybeUpdateTuningAndTimeStep_();
}
const double dt = this->substep_timer_.currentStepLength();
if (timeStepVerbose_()) {
detail::logTimer(this->substep_timer_);