3#ifndef DUNE_GRIDDISPLAY_HH
4#define DUNE_GRIDDISPLAY_HH
18#include "grapecommon.hh"
20namespace GrapeInterface_two_two
23#define GRAPE_DIMWORLD 2
24#undef GRAPE_GRAPEHMESH_HH_INCLUDED
25#include "grapehmesh.hh"
28namespace GrapeInterface_two_three
31#define GRAPE_DIMWORLD 3
32#undef GRAPE_GRAPEHMESH_HH_INCLUDED
33#include "grapehmesh.hh"
36namespace GrapeInterface_three_three
39#define GRAPE_DIMWORLD 3
40#undef GRAPE_GRAPEHMESH_HH_INCLUDED
41#include "grapehmesh.hh"
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;
62 typedef GrapeInterface_three_three::STACKENTRY STACKENTRY;
64 inline static void init()
66 GrapeInterface_two_two::grape_add_remove_methods();
67 GrapeInterface_two_two::setupReferenceElements();
70 inline static void setThread(
int t)
73 inline static void setDefaultIterator(
int val)
75 setDefaultIteratorValue(val);
78 inline static void handleMesh (
void *hmesh,
bool grdMode =
false )
80 GrapeInterface_two_two::handleMesh(hmesh,grdMode);
83 inline static void addDataToHmesh(
void *hmesh, DUNE_FDATA * data)
85 GrapeInterface_two_two::addDataToHmesh(hmesh,data);
88 inline static void *setupHmesh(
const int noe,
89 const int nov,
const int maxlev,DUNE_DAT * dune,
90 const char *meshName =
"Dune Mesh" )
92 return GrapeInterface_two_two::setupHmesh(
93 noe,nov,maxlev,dune,meshName);
96 inline static void deleteHmesh(
void * hmesh )
98 GrapeInterface_two_two::deleteHmesh( hmesh );
101 inline static void deleteFunctions(
void * hmesh )
103 GrapeInterface_two_two::deleteFunctions( hmesh );
106 inline static void addHmeshToTimeScene(
void * timescene,
double time,
void *hmesh ,
int proc)
108 GrapeInterface_two_two::addHmeshToTimeScene(timescene,time,hmesh,proc);
111 inline static void addHmeshToGlobalTimeScene(
double time,
void *hmesh ,
int proc)
113 GrapeInterface_two_two::addHmeshToGlobalTimeScene(time,hmesh,proc);
116 inline static void colorBarMinMax(
const double min,
const double max)
118 GrapeInterface_two_two::colorBarMinMax(min,max);
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;
131 typedef GrapeInterface_two_three::STACKENTRY STACKENTRY;
133 inline static void init()
135 GrapeInterface_two_three::grape_add_remove_methods();
136 GrapeInterface_two_three::setupReferenceElements();
139 inline static void setThread(
int t)
142 inline static void setDefaultIterator(
int val)
144 setDefaultIteratorValue(val);
147 inline static void handleMesh (
void *hmesh,
bool grdMode =
false )
149 GrapeInterface_two_three::handleMesh(hmesh,grdMode);
152 inline static void addDataToHmesh(
void *hmesh, DUNE_FDATA * data)
154 GrapeInterface_two_three::addDataToHmesh(hmesh,data);
157 inline static void *setupHmesh(
const int noe,
158 const int nov,
const int maxlev,DUNE_DAT * dune,
159 const char *meshName =
"Dune Mesh" )
161 return GrapeInterface_two_three::setupHmesh(
162 noe,nov,maxlev,dune, meshName);
165 inline static void deleteHmesh(
void * hmesh )
167 GrapeInterface_two_three::deleteHmesh( hmesh );
170 inline static void deleteFunctions(
void * hmesh )
172 GrapeInterface_two_three::deleteFunctions( hmesh );
175 inline static void addHmeshToTimeScene(
void * timescene,
double time,
void *hmesh ,
int proc)
177 GrapeInterface_two_three::addHmeshToTimeScene(timescene,time,hmesh,proc);
180 inline static void addHmeshToGlobalTimeScene(
double time,
void *hmesh ,
int proc)
182 GrapeInterface_two_three::addHmeshToGlobalTimeScene(time,hmesh,proc);
185 inline static void colorBarMinMax(
const double min,
const double max)
187 GrapeInterface_two_three::colorBarMinMax(min,max);
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;
200 typedef GrapeInterface_three_three::STACKENTRY STACKENTRY;
202 inline static void init()
204 GrapeInterface_three_three::initPartitionDisp(__MaxPartition);
205 GrapeInterface_three_three::grape_add_remove_methods();
206 GrapeInterface_three_three::setupReferenceElements();
209 inline static void setThread(
int t)
211 GrapeInterface_three_three::setThread(t);
214 inline static void setDefaultIterator(
int val)
216 setDefaultIteratorValue(val);
219 inline static void handleMesh (
void *hmesh,
bool grdMode =
false )
221 GrapeInterface_three_three::handleMesh(hmesh,grdMode);
224 inline static void addDataToHmesh(
void *hmesh, DUNE_FDATA * data)
226 GrapeInterface_three_three::addDataToHmesh(hmesh,data);
229 inline static void *setupHmesh(
const int noe,
230 const int nov,
const int maxlev, DUNE_DAT * dune,
231 const char *meshName =
"Dune Mesh" )
233 return GrapeInterface_three_three::
234 setupHmesh(noe,nov,maxlev,dune, meshName);
237 inline static void deleteFunctions(
void * hmesh )
239 GrapeInterface_three_three::deleteFunctions( hmesh );
242 inline static void deleteHmesh(
void * hmesh )
244 GrapeInterface_three_three::deleteHmesh( hmesh );
247 inline static void addHmeshToTimeScene(
void * timescene,
double time,
void *hmesh ,
int proc)
249 GrapeInterface_three_three::addHmeshToTimeScene(timescene,time,hmesh,proc);
251 inline static void addHmeshToGlobalTimeScene(
double time,
void *hmesh ,
int proc)
253 GrapeInterface_three_three::addHmeshToGlobalTimeScene(time,hmesh,proc);
256 inline static void colorBarMinMax(
const double min,
const double max)
258 GrapeInterface_three_three::colorBarMinMax(min,max);
264#include "grapecommon.cc"
Dune namespace.
Definition: alignment.hh:14