fixed: initialize MPI before creating communicator

This commit is contained in:
Arne Morten Kvarving 2023-04-24 09:57:26 +02:00
parent 4bf2dd7269
commit adeb67ddbe

View File

@ -39,13 +39,13 @@ int main(int argc, char** argv)
return 1; return 1;
} }
Dune::MPIHelper::instance(argc, argv);
#if HAVE_MPI #if HAVE_MPI
Opm::Parallel::Communication comm{MPI_COMM_SELF}; Opm::Parallel::Communication comm{MPI_COMM_SELF};
#else #else
Opm::Parallel::Communication comm{}; Opm::Parallel::Communication comm{};
#endif #endif
Dune::MPIHelper::instance(argc, argv);
Opm::HDF5Serializer ser(argv[1], Opm::HDF5File::OpenMode::READ, comm); Opm::HDF5Serializer ser(argv[1], Opm::HDF5File::OpenMode::READ, comm);
std::tuple<std::array<std::string,5>,int> header; std::tuple<std::array<std::string,5>,int> header;