3 #ifndef DUNE_GRIDDISPLAY_HH
4 #define DUNE_GRIDDISPLAY_HH
20 namespace GrapeInterface_two_two
23 #define GRAPE_DIMWORLD 2
24 #undef GRAPE_GRAPEHMESH_HH_INCLUDED
28 namespace GrapeInterface_two_three
31 #define GRAPE_DIMWORLD 3
32 #undef GRAPE_GRAPEHMESH_HH_INCLUDED
36 namespace GrapeInterface_three_three
39 #define GRAPE_DIMWORLD 3
40 #undef GRAPE_GRAPEHMESH_HH_INCLUDED
47 static int __MaxPartition = 1;
50 template <
int dim,
int dimworld>
51 struct GrapeInterface;
54 struct GrapeInterface<2,2>
57 typedef GrapeInterface_two_two::DUNE_ELEM DUNE_ELEM;
58 typedef GrapeInterface_two_two::DUNE_FDATA DUNE_FDATA;
59 typedef GrapeInterface_two_two::DUNE_DAT DUNE_DAT;
60 typedef GrapeInterface_two_two::F_DATA F_DATA;
61 typedef GrapeInterface_three_three::HELEMENT HELEMENT;
64 inline static void init()
67 GrapeInterface_two_two::setupReferenceElements();
73 inline static void setDefaultIterator(
int val)
78 inline static void handleMesh (
void *hmesh,
bool grdMode =
false )
89 const int nov,
const int maxlev,DUNE_DAT * dune,
90 const char *meshName =
"Dune Mesh" )
93 noe,nov,maxlev,dune,meshName);
106 inline static void addHmeshToTimeScene(
void * timescene,
double time,
void *hmesh ,
int proc)
123 struct GrapeInterface<2,3>
126 typedef GrapeInterface_two_three::DUNE_ELEM DUNE_ELEM;
127 typedef GrapeInterface_two_three::DUNE_FDATA DUNE_FDATA;
128 typedef GrapeInterface_two_three::DUNE_DAT DUNE_DAT;
129 typedef GrapeInterface_two_three::F_DATA F_DATA;
130 typedef GrapeInterface_two_three::HELEMENT HELEMENT;
133 inline static void init()
136 GrapeInterface_two_three::setupReferenceElements();
142 inline static void setDefaultIterator(
int val)
147 inline static void handleMesh (
void *hmesh,
bool grdMode =
false )
158 const int nov,
const int maxlev,DUNE_DAT * dune,
159 const char *meshName =
"Dune Mesh" )
162 noe,nov,maxlev,dune, meshName);
175 inline static void addHmeshToTimeScene(
void * timescene,
double time,
void *hmesh ,
int proc)
193 struct GrapeInterface<3,3>
195 typedef GrapeInterface_three_three::DUNE_ELEM DUNE_ELEM;
196 typedef GrapeInterface_three_three::DUNE_FDATA DUNE_FDATA;
197 typedef GrapeInterface_three_three::DUNE_DAT DUNE_DAT;
198 typedef GrapeInterface_three_three::F_DATA F_DATA;
199 typedef GrapeInterface_three_three::HELEMENT HELEMENT;
202 inline static void init()
206 GrapeInterface_three_three::setupReferenceElements();
214 inline static void setDefaultIterator(
int val)
219 inline static void handleMesh (
void *hmesh,
bool grdMode =
false )
230 const int nov,
const int maxlev, DUNE_DAT * dune,
231 const char *meshName =
"Dune Mesh" )
247 inline static void addHmeshToTimeScene(
void * timescene,
double time,
void *hmesh ,
int proc)
266 #endif // #if HAVE_GRAPE
268 #endif // #ifndef DUNE_GRIDDISPLAY_HH