ECL problem: set the first time step of the each epsiode to the report step size

This commit is contained in:
Andreas Lauser
2014-07-28 16:26:10 +02:00
parent db506c78e6
commit 6ab54a1057

View File

@@ -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);
}