Merge pull request #3721 from joakim-hove/respect-nextstep

Respect NEXTSTEP in ecl genericproblem timestepper
This commit is contained in:
Tor Harald Sandve 2021-12-06 10:41:07 +01:00 committed by GitHub
commit 226ff0c9dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -347,8 +347,9 @@ beginEpisode_(bool enableExperiments,
// react to TUNING changes
if (episodeIdx > 0 && enableTuning_ && events.hasEvent(ScheduleEvents::TUNING_CHANGE))
{
const auto& tuning = schedule_[episodeIdx].tuning();
initialTimeStepSize_ = tuning.TSINIT;
const auto& sched_state = schedule_[episodeIdx];
const auto& tuning = sched_state.tuning();
initialTimeStepSize_ = sched_state.max_next_tstep();
maxTimeStepAfterWellEvent_ = tuning.TMAXWC;
maxTimeStepSize_ = tuning.TSMAXZ;
restartShrinkFactor_ = 1./tuning.TSFCNV;