dune-grid  2.2.1
grapecommon.hh
Go to the documentation of this file.
1 #ifndef DUNE_GRAPECOMMON_HH
2 #define DUNE_GRAPECOMMON_HH
3 
4 #include "grapewrapper.hh"
5 
6 #if HAVE_GRAPE
7 
8 /* max number for vertices and faces in Grape */
9 enum { MAX_EL_DOF = 8 };
10 enum { MAX_EL_FACE = 6 };
11 
12 /* global variables for maxlevel use */
13 static BUTTON * maxlevelButton=0;
14 
15 /* on click set min and max value of function to colorbar */
16 static BUTTON * minMaxColorbar=0;
17 
18 /* global variables for iterator choice */
19 static COMBOBUTTON * iteratorButton = 0;
20 static int defaultIteratorValue = 0 ;
21 
22 /* global variables for partition type choice */
23 static COMBOBUTTON * partitionTypeButton = 0;
24 
25 static TIMESCENE * globalTsc = 0;
26 
27 /* info about data on one mesh */
28 typedef struct datainfo DATAINFO;
29 struct datainfo
30 {
31  const char * name;
32  const char * base_name;
33  DATAINFO *next;
34 
35  int dimVal; /* length of vector (dimVal = 1 --> scalar, otherwise vector */
36  int * comp; /* number of each component */
37 };
38 
39 /* info about one mesh */
40 typedef struct info INFO;
41 struct info
42 {
43  int fix_mesh; /* if no dynamic grid 1 : else 0 */
44  const char *name;
45  DATAINFO * datinf;
46  void *tsc;
47 };
48 
49 void setupLeafButton(MANAGER *mgr, void *sc, int yesTimeScene);
50 void removeLeafButton(MANAGER *mgr, void *sc);
51 void setDefaultIteratorValue(int val);
52 
53 #endif
54 
55 #endif