Using std::time_t from TimeMap

This commit is contained in:
Joakim Hove committed 2017-06-19 22:13:25 +02:00
1 parent bff4c8ade9
commit 05bc61e4ba
1 file changed
+1 -4
+1 -4
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