mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-14 04:11:55 -06:00
ECL problem: set the start time to the one specified in the deck
This commit is contained in:
parent
4677e0f98b
commit
42316a824e
@ -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