dune-grid
2.2.0
|
00001 #ifndef DUNE_GRAPECOMMON_HH 00002 #define DUNE_GRAPECOMMON_HH 00003 00004 #include "grapewrapper.hh" 00005 00006 #if HAVE_GRAPE 00007 00008 /* max number for vertices and faces in Grape */ 00009 enum { MAX_EL_DOF = 8 }; 00010 enum { MAX_EL_FACE = 6 }; 00011 00012 /* global variables for maxlevel use */ 00013 static BUTTON * maxlevelButton=0; 00014 00015 /* on click set min and max value of function to colorbar */ 00016 static BUTTON * minMaxColorbar=0; 00017 00018 /* global variables for iterator choice */ 00019 static COMBOBUTTON * iteratorButton = 0; 00020 static int defaultIteratorValue = 0 ; 00021 00022 /* global variables for partition type choice */ 00023 static COMBOBUTTON * partitionTypeButton = 0; 00024 00025 static TIMESCENE * globalTsc = 0; 00026 00027 /* info about data on one mesh */ 00028 typedef struct datainfo DATAINFO; 00029 struct datainfo 00030 { 00031 const char * name; 00032 const char * base_name; 00033 DATAINFO *next; 00034 00035 int dimVal; /* length of vector (dimVal = 1 --> scalar, otherwise vector */ 00036 int * comp; /* number of each component */ 00037 }; 00038 00039 /* info about one mesh */ 00040 typedef struct info INFO; 00041 struct info 00042 { 00043 int fix_mesh; /* if no dynamic grid 1 : else 0 */ 00044 const char *name; 00045 DATAINFO * datinf; 00046 void *tsc; 00047 }; 00048 00049 void setupLeafButton(MANAGER *mgr, void *sc, int yesTimeScene); 00050 void removeLeafButton(MANAGER *mgr, void *sc); 00051 void setDefaultIteratorValue(int val); 00052 00053 #endif 00054 00055 #endif