fixed: eclalugridvanguard did not build in serial

while the comm object is implicitly castable to a mpi_comm
with mpi, it is not implicitly castable to a no_comm
without.
This commit is contained in:
Arne Morten Kvarving
2022-11-15 11:25:54 +01:00
parent f7de591682
commit d15c2607f5
+6
View File
@@ -32,6 +32,8 @@
#include "alucartesianindexmapper.hh"
#include <opm/models/common/multiphasebaseproperties.hh>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <dune/alugrid/grid.hh>
#include <dune/alugrid/common/fromtogridfactory.hh>
#include <dune/alugrid/dgf.hh>
@@ -292,7 +294,11 @@ protected:
OpmLog::info("\nProcessing grid");
}
#if HAVE_MPI
this->equilGrid_ = std::make_unique<Dune::CpGrid>(EclGenericVanguard::comm());
#else
this->equilGrid_ = std::make_unique<Dune::CpGrid>();
#endif
// Note: removed_cells is guaranteed to be empty on ranks other than 0.
auto removed_cells =
this->equilGrid_->processEclipseFormat(input_grid,