Skip to content
Snippets Groups Projects
Commit 0857c520 authored by Andreas Lauser's avatar Andreas Lauser
Browse files

pass the MPI communicator to the DGF grid loader

this fixes the parallel stuff for problems which load their grids from
a DGF file. The problems which use other grid creators (e.g. the 2pni
test problem) seem to not need this...

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@7988 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 3fec38b1
No related merge requests found
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#define DUMUX_DGF_GRID_CREATOR_HH #define DUMUX_DGF_GRID_CREATOR_HH
#include <dune/grid/io/file/dgfparser.hh> #include <dune/grid/io/file/dgfparser.hh>
#include <dune/common/mpihelper.hh>
#include <dumux/common/propertysystem.hh> #include <dumux/common/propertysystem.hh>
#include <dumux/common/parameters.hh> #include <dumux/common/parameters.hh>
...@@ -55,7 +56,7 @@ public: ...@@ -55,7 +56,7 @@ public:
{ {
const std::string dgfFileName = GET_RUNTIME_PARAM(TypeTag, std::string, gridFile); const std::string dgfFileName = GET_RUNTIME_PARAM(TypeTag, std::string, gridFile);
gridPtr_ = GridPointer(dgfFileName.c_str()); gridPtr_ = GridPointer(dgfFileName.c_str(), Dune::MPIHelper::getCommunicator());
}; };
/*! /*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment