ECL problem: set the start time to the one specified in the deck

This commit is contained in:
Andreas Lauser 2014-04-25 19:25:04 +02:00
parent 4677e0f98b
commit 42316a824e

View File

@ -200,7 +200,9 @@ public:
Opm::TimeMapConstPtr timeMap = simulator.gridManager().schedule()->getTimeMap();
tm curTime = boost::posix_time::to_tm(timeMap->getStartTime(/*timeStepIdx=*/0));
simulator.startNextEpisode(/*startTime=*/std::mktime(&curTime),
Scalar startTime = std::mktime(&curTime);
simulator.setStartTime(startTime);
simulator.startNextEpisode(/*startTime=*/startTime,
/*length=*/timeMap->getTimeStepLength(/*timeStepIdx=*/0));
// we want the episode index to be the same as the report step