Add three argument (year, month, day) constructor TimeStampUTC

This commit is contained in:
Joakim Hove
2020-04-04 16:17:32 +02:00
parent efb34b6533
commit ab2e5cc310
8 changed files with 31 additions and 26 deletions

View File

@@ -32,10 +32,10 @@
BOOST_AUTO_TEST_CASE(CreateEmpty) {
std::vector<std::time_t> tp = { Opm::asTimeT(Opm::TimeStampUTC({2010,1,1})) };
std::vector<std::time_t> tp = { Opm::asTimeT(Opm::TimeStampUTC(2010,1,1)) };
for (int i = 0; i < 11; i++)
tp.push_back( Opm::asTimeT(Opm::TimeStampUTC({2010,1,i+2})));
tp.push_back( Opm::asTimeT(Opm::TimeStampUTC(2010,1,i+2)));
Opm::TimeMap timeMap(tp);
Opm::Events events( timeMap );