dgfalberta.hh

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

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].