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