dgfs.hh

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

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