mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-15 23:31:57 -06:00
Using std::time_t from TimeMap
This commit is contained in:
parent
bff4c8ade9
commit
05bc61e4ba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user