Load restart with global grid only available on one processor.

For this the master (IO) rank loads the RestartValue and then
broadcasts it to the other ranks.
This commit is contained in:
Markus Blatt committed 2019-10-15 14:03:24 +02:00
1 parent 7784d53198
commit 9735bdadfc
4 files changed
+900 -1

No files matched your search

+3 -1
View File
@@ -43,6 +43,7 @@
#include <opm/output/eclipse/Summary.hpp>
#include <opm/parser/eclipse/Units/UnitSystem.hpp>
#include <opm/simulators/utils/ParallelRestart.hpp>
#include <opm/grid/GridHelpers.hpp>
#include <opm/grid/utility/cartesianToCompressed.hpp>
@@ -428,7 +429,8 @@ public:
{
Opm::SummaryState& summaryState = simulator_.vanguard().summaryState();
auto restartValues = eclIO_->loadRestart(summaryState, solutionKeys, extraKeys);
auto restartValues = loadParallelRestart(eclIO_.get(), summaryState, solutionKeys, extraKeys,
gridView.grid().comm());
for (unsigned elemIdx = 0; elemIdx < numElements; ++elemIdx) {
unsigned globalIdx = collectToIORank_.localIdxToGlobalIdx(elemIdx);