Update to new interface of TimeMap

This commit is contained in:
Jens Ivar Jørdre
2017-06-30 10:54:17 +02:00
parent d5d9a2aa93
commit bbf29540a3
5 changed files with 52 additions and 52 deletions

View File

@@ -38,10 +38,10 @@
using namespace Opm;
static TimeMap createXDaysTimeMap(size_t numDays) {
boost::gregorian::date startDate( 2010 , boost::gregorian::Jan , 1);
Opm::TimeMap timeMap{ boost::posix_time::ptime(startDate) };
const std::time_t startDate = Opm::TimeMap::mkdate(2010, 1, 1);
Opm::TimeMap timeMap{ startDate };
for (size_t i = 0; i < numDays; i++)
timeMap.addTStep( boost::posix_time::hours( (i+1) * 24 ));
timeMap.addTStep((i+1) * 24 * 60 * 60);
return timeMap;
}