1 #ifndef DUNE_GRIDDISPLAY_HH
2 #define DUNE_GRIDDISPLAY_HH
18 namespace GrapeInterface_two_two
21 #define GRAPE_DIMWORLD 2
22 #undef GRAPE_GRAPEHMESH_HH_INCLUDED
26 namespace GrapeInterface_two_three
29 #define GRAPE_DIMWORLD 3
30 #undef GRAPE_GRAPEHMESH_HH_INCLUDED
34 namespace GrapeInterface_three_three
37 #define GRAPE_DIMWORLD 3
38 #undef GRAPE_GRAPEHMESH_HH_INCLUDED
45 static int __MaxPartition = 1;
48 template <
int dim,
int dimworld>
49 struct GrapeInterface;
52 struct GrapeInterface<2,2>
55 typedef GrapeInterface_two_two::DUNE_ELEM DUNE_ELEM;
56 typedef GrapeInterface_two_two::DUNE_FDATA DUNE_FDATA;
57 typedef GrapeInterface_two_two::DUNE_DAT DUNE_DAT;
58 typedef GrapeInterface_two_two::F_DATA F_DATA;
59 typedef GrapeInterface_three_three::HELEMENT HELEMENT;
62 inline static void init()
65 GrapeInterface_two_two::setupReferenceElements();
72 inline static void setDefaultIterator(
int val)
77 inline static void handleMesh (
void *hmesh,
bool grdMode =
false )
88 const int nov,
const int maxlev,DUNE_DAT * dune,
89 const char *meshName =
"Dune Mesh" )
92 noe,nov,maxlev,dune,meshName);
105 inline static void addHmeshToTimeScene(
void * timescene,
double time,
void *hmesh ,
int proc)
122 struct GrapeInterface<2,3>
125 typedef GrapeInterface_two_three::DUNE_ELEM DUNE_ELEM;
126 typedef GrapeInterface_two_three::DUNE_FDATA DUNE_FDATA;
127 typedef GrapeInterface_two_three::DUNE_DAT DUNE_DAT;
128 typedef GrapeInterface_two_three::F_DATA F_DATA;
129 typedef GrapeInterface_two_three::HELEMENT HELEMENT;
132 inline static void init()
135 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