mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-10 15:55:35 -06:00
ECL problem: set the start time to the one specified in the deck
This commit is contained in:
parent
45758d723c
commit
84b5a6da63
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user