mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Using std::time_t from TimeMap
This commit is contained in:
1 parent
bff4c8ade9
commit
05bc61e4ba
1 file changed
+1
-4
+1
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user