Set communication object before constructing vanguard.

This commit is contained in:
Atgeirr Flø Rasmussen
2021-10-06 08:52:19 +02:00
parent 09a5320e21
commit 7e5cd73254
2 changed files with 2 additions and 0 deletions

View File

@@ -206,6 +206,7 @@ struct EquilFixture {
#else
Dune::MPIHelper::instance(argc, argv);
#endif
Opm::EclGenericVanguard::setCommunication(std::make_unique<Opm::Parallel::Communication>());
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
Opm::registerAllParameters_<TypeTag>();
}

View File

@@ -105,6 +105,7 @@ struct GliftFixture {
#else
Dune::MPIHelper::instance(argc, argv);
#endif
Opm::EclGenericVanguard::setCommunication(std::make_unique<Opm::Parallel::Communication>());
using TypeTag = Opm::Properties::TTag::EclFlowProblem;
Opm::registerAllParameters_<TypeTag>();
}