00001 #ifndef DUNE_DGFPARSERALBERTA_HH
00002 #define DUNE_DGFPARSERALBERTA_HH
00003
00004 #if defined ENABLE_ALBERTA
00005 #include <dune/grid/albertagrid.hh>
00006 #include "dgfparser.hh"
00007 namespace Dune {
00008 template <int dim,int dimworld>
00009 class MacroGrid::Impl<AlbertaGrid<dim,dimworld> > {
00010 typedef MPIHelper::MPICommunicator MPICommunicatorType;
00011 public:
00012 static AlbertaGrid<dim,dimworld>* generate(MacroGrid& mg,
00013 const char* filename,
00014 MPICommunicatorType MPICOMM = MPIHelper::getCommunicator());
00015 };
00016
00017 template <int dimworld>
00018 struct DGFGridInfo< AlbertaGrid<dimworld,dimworld> > {
00019 static int refineStepsForHalf() {return dimworld;}
00020 static double refineWeight() {return 0.5;}
00021 };
00022 }
00023 #include "dgfalberta.cc"
00024 #endif
00025 #endif