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
int min(const DofVectorPointer< int > &dofVector)
Definition: dofvector.hh:346
void handleMesh(void *hmesh, bool gridMode)
Definition: ghmesh.cc:1065
void colorBarMinMax(const double min, const double max)
Definition: ghmesh.cc:1057
void addDataToHmesh(void *hmesh, DUNE_FDATA *data)
Definition: ghmesh.cc:668
int max(const DofVectorPointer< int > &dofVector)
Definition: dofvector.hh:335
static void grape_add_remove_methods(void)
Definition: ghmesh.cc:1513
void deleteFunctions(void *hmesh)
Definition: ghmesh.cc:851
void addHmeshToGlobalTimeScene(double time, void *hmesh, int proc)
Definition: ghmesh.cc:1149
void initPartitionDisp(int mp)
Definition: partitiondisplay.cc:370
void setDefaultIteratorValue(int val)
Definition: grapecommon.cc:43
void deleteHmesh(void *hmesh)
Definition: ghmesh.cc:845
struct stackentry STACKENTRY
Include standard header files.
Definition: agrid.hh:59
static void setThread(int t)
Definition: partitiondisplay.cc:144
void addHmeshToTimeScene(void *timescene, double time, void *hmesh, int proc)
Definition: ghmesh.cc:1124
void * setupHmesh(const int noe, const int nov, const int maxlev, DUNE_DAT *dune, const char *meshName)
Definition: ghmesh.cc:794