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

Respect NEXTSTEP in ecl genericproblem timestepper
This commit is contained in:
Tor Harald Sandve authored and GitHub committed 2021-12-06 10:41:07 +01:00
commit 226ff0c9dc
1 file changed
+3 -2
+3 -2
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;