5#ifndef DUNE_DGF_MACROGRID_HH
6#define DUNE_DGF_MACROGRID_HH
11#include <dune/common/parallel/mpihelper.hh>
19 class DuneGridFormatParser;
24 template<
class Gr
idType >
35 , MPICOMM_(MPICOMM) {}
41 , MPICOMM_(MPICOMM) {}
44 template <
class Gr
idType>
47 return Impl<GridType>::generate(*
this,filename_,MPICOMM_);
54 MPI_Comm_rank( MPICOMM, &rank );
62 MPI_Comm_size( MPICOMM, &size );
77 template<
class Gr
idType >
84 static_assert( GridType::dimension<0,
"DGF grid factory missing. Did you forget to add the corresponding dgf header or config.h?");
88 const char* filename_;
Include standard header files.
Definition: agrid.hh:60
Definition: dgfgridfactory.hh:38
Definition: macrogrid.hh:23
MacroGrid(const char *filename, MPICommunicatorType MPICOMM=MPIHelper::getCommunicator())
constructor given the name of a DGF file
Definition: macrogrid.hh:32
MacroGrid(MPICommunicatorType MPICOMM=MPIHelper::getCommunicator())
constructor given the name of a DGF file
Definition: macrogrid.hh:38
GridType * createGrid()
returns pointer to a new instance of type GridType created from a DGF file
Definition: macrogrid.hh:45
MPIHelper::MPICommunicator MPICommunicatorType
Definition: macrogrid.hh:28
The DuneGridFormatParser class: reads a DGF file and stores build information in vector structures us...
Definition: parser.hh:47