3 #ifndef DUNE_DGF_MACROGRID_HH
4 #define DUNE_DGF_MACROGRID_HH
9 #include <dune/common/parallel/mpihelper.hh>
17 class DuneGridFormatParser;
22 template<
class Gr
idType >
33 , MPICOMM_(MPICOMM) {}
39 , MPICOMM_(MPICOMM) {}
42 template <
class Gr
idType>
45 return Impl<GridType>::generate(*
this,filename_,MPICOMM_);
52 MPI_Comm_rank( MPICOMM, &rank );
60 MPI_Comm_size( MPICOMM, &size );
75 template<
class Gr
idType >
82 dune_static_assert( GridType::dimension<0,
"DGF grid factory missing. Did you forget to add the corresponding dgf header or config.h?");
86 const char* filename_;
GridType * createGrid()
returns pointer to a new instance of type GridType created from a DGF file
Definition: macrogrid.hh:43
MacroGrid(const char *filename, MPICommunicatorType MPICOMM=MPIHelper::getCommunicator())
constructor given the name of a DGF file
Definition: macrogrid.hh:30
MPIHelper::MPICommunicator MPICommunicatorType
Definition: macrogrid.hh:26
MacroGrid(MPICommunicatorType MPICOMM=MPIHelper::getCommunicator())
constructor given the name of a DGF file
Definition: macrogrid.hh:36
The DuneGridFormatParser class: reads a DGF file and stores build information in vector structures us...
Definition: parser.hh:44
Definition: macrogrid.hh:19