Respect NEXTSTEP in ecl genericproblem timestepper

This commit is contained in:
Joakim Hove 2021-12-03 11:59:03 +01:00
parent 43c0931cd3
commit 9234fd8aa6

View File

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