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