Using std::time_t from TimeMap

This commit is contained in:
Joakim Hove 2017-06-19 11:58:30 +02:00
parent bff4c8ade9
commit 05bc61e4ba

View File

@ -349,10 +349,7 @@ public:
// Set the start time of the simulation
const auto& timeMap = simulator.gridManager().eclState().getSchedule().getTimeMap();
tm curTime = boost::posix_time::to_tm(timeMap.getStartTime(/*timeStepIdx=*/0));
Scalar startTime = std::mktime(&curTime);
simulator.setStartTime(startTime);
simulator.setStartTime( timeMap.getStartTime(/*timeStepIdx=*/0) );
// We want the episode index to be the same as the report step index to make
// things simpler, so we have to set the episode index to -1 because it is