diff --git a/dumux/common/dgfgridcreator.hh b/dumux/common/dgfgridcreator.hh index 72a9b5e350fef2d416d524d21977e41b1caec11c..4b679d121ae93b7c2bf6e93536f96aa339c8d35c 100644 --- a/dumux/common/dgfgridcreator.hh +++ b/dumux/common/dgfgridcreator.hh @@ -27,6 +27,7 @@ #define DUMUX_DGF_GRID_CREATOR_HH #include <dune/grid/io/file/dgfparser.hh> +#include <dune/common/mpihelper.hh> #include <dumux/common/propertysystem.hh> #include <dumux/common/parameters.hh> @@ -55,7 +56,7 @@ public: { const std::string dgfFileName = GET_RUNTIME_PARAM(TypeTag, std::string, gridFile); - gridPtr_ = GridPointer(dgfFileName.c_str()); + gridPtr_ = GridPointer(dgfFileName.c_str(), Dune::MPIHelper::getCommunicator()); }; /*!