mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ECL problem: set the first time step of the each epsiode to the report step size
This commit is contained in:
@@ -295,8 +295,10 @@ public:
|
|||||||
// start the next episode if there are additional report
|
// start the next episode if there are additional report
|
||||||
// steps, else finish the simulation
|
// steps, else finish the simulation
|
||||||
int nextEpisodeIdx = simulator.episodeIndex() + 1;
|
int nextEpisodeIdx = simulator.episodeIndex() + 1;
|
||||||
if (nextEpisodeIdx < numReportSteps)
|
if (nextEpisodeIdx < numReportSteps) {
|
||||||
simulator.startNextEpisode(timeMap->getTimeStepLength(nextEpisodeIdx));
|
simulator.startNextEpisode(timeMap->getTimeStepLength(nextEpisodeIdx));
|
||||||
|
simulator.setTimeStepSize(timeMap->getTimeStepLength(nextEpisodeIdx));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
simulator.setFinished(true);
|
simulator.setFinished(true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user