dgfyasp.hh
00001 #ifndef DUNE_DGFPARSERYASP_HH
00002 #define DUNE_DGFPARSERYASP_HH
00003 #include <dune/grid/yaspgrid.hh>
00004 #include "dgfparser.hh"
00005 namespace Dune {
00006 template <int dim,int dimworld>
00007 class MacroGrid::Impl<YaspGrid<dim,dimworld> > {
00008 typedef MPIHelper::MPICommunicator MPICommunicatorType;
00009 public:
00010 static YaspGrid<dim,dimworld>* generate(MacroGrid& mg,
00011 const char* filename, MPICommunicatorType MPICOMM = MPIHelper::getCommunicator() );
00012 };
00013 template <int dim, int dimw>
00014 struct DGFGridInfo< YaspGrid<dim,dimw> > {
00015 static int refineStepsForHalf() {return 1;}
00016 static double refineWeight() {return pow(0.5,dim);}
00017 };
00018 }
00019 #include "dgfyasp.cc"
00020 #endif