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