Skip to content

Commit

Permalink
Merge pull request #1222 from joakim-hove/time-map-api
Browse files Browse the repository at this point in the history
Changed to TimeMap api - using std::time_t
  • Loading branch information
joakim-hove authored Jun 20, 2017
2 parents 513b25f + 66931cb commit eafadaa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions opm/simulators/timestepping/SimulatorTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ namespace Opm
}

setCurrentStepNum(report_step);

boost::posix_time::ptime start_time = timeMap.getStartTime(0);
start_date_ = start_time.date();
start_date_ = boost::posix_time::from_time_t( timeMap.getStartTime(0)).date();
}

/// Whether the current step is the first step.
Expand Down

0 comments on commit eafadaa

Please sign in to comment.