Pass sim start argument to SummaryState constructor

This commit is contained in:
Joakim Hove
2019-09-20 07:40:04 +02:00
parent 37854bcdcb
commit bbb9cd3483
8 changed files with 33 additions and 23 deletions
+2 -1
View File
@@ -53,6 +53,7 @@
#include <list>
#include <utility>
#include <string>
#include <chrono>
#ifdef HAVE_MPI
#include <mpi.h>
@@ -426,7 +427,7 @@ public:
cumulatives will be counted doubly, we therefor use a temporary
SummaryState instance in this call to loadRestart().
*/
Opm::SummaryState summaryState;
Opm::SummaryState summaryState(std::chrono::system_clock::from_time_t(simulator_.vanguard().schedule().getStartTime()));
auto restartValues = eclIO_->loadRestart(summaryState, solutionKeys, extraKeys);
for (unsigned elemIdx = 0; elemIdx < numElements; ++elemIdx) {