Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions ebos/eclproblem.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions ebos/ertwrappers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -575,14 +575,12 @@ public:

// the correct start time has not yet been set in the
// simulator, so we extract it from the ECL deck->..
tm curTime = boost::posix_time::to_tm(timeMap.getStartTime(/*timeStepIdx=*/0));
double startTime = std::mktime(&curTime);

ertHandle_ = ecl_sum_alloc_writer(caseName.c_str(),
/*formatted=*/false,
/*unified=*/true,
/*joinString=*/":",
startTime,
timeMap.getStartTime(/*timeStepIdx=*/0),
/*timeIsInDays=*/true, // if not, it's hours...
eclGrid.getNX(),
eclGrid.getNY(),
Expand Down