mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user