From 6ab54a1057653632cd199ee8b87ba2a4a23866ed Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Mon, 28 Jul 2014 16:26:10 +0200 Subject: [PATCH] ECL problem: set the first time step of the each epsiode to the report step size --- tests/problems/eclproblem.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/problems/eclproblem.hh b/tests/problems/eclproblem.hh index 942ae8515..4090908f4 100644 --- a/tests/problems/eclproblem.hh +++ b/tests/problems/eclproblem.hh @@ -295,8 +295,10 @@ public: // start the next episode if there are additional report // steps, else finish the simulation int nextEpisodeIdx = simulator.episodeIndex() + 1; - if (nextEpisodeIdx < numReportSteps) + if (nextEpisodeIdx < numReportSteps) { simulator.startNextEpisode(timeMap->getTimeStepLength(nextEpisodeIdx)); + simulator.setTimeStepSize(timeMap->getTimeStepLength(nextEpisodeIdx)); + } else simulator.setFinished(true); }