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

This commit is contained in:
Joakim Hove
2020-04-04 16:20:13 +02:00
parent efb34b6533
commit ab2e5cc310
8 changed files with 31 additions and 26 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ BOOST_AUTO_TEST_CASE(DynamicVectorSet) {
const std::time_t startDate = Opm::TimeMap::mkdate(2010, 1, 1);
std::vector<std::time_t> tp = { startDate };
for (int i = 0; i < 4; 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::DynamicVector<int> state(timeMap , 137);
@@ -70,7 +70,7 @@ BOOST_AUTO_TEST_CASE(DynamicVectorPtr) {
const std::time_t startDate = Opm::TimeMap::mkdate(2010, 1, 1);
std::vector<std::time_t> tp = { startDate };
for (int i = 0; i < 4; 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::DynamicVector<int> state( timeMap , 137 );