Dune Core Modules (2.4.2)

grapecommon.hh
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 */
11enum { MAX_EL_DOF = 8 };
12enum { MAX_EL_FACE = 6 };
13
14/* global variables for maxlevel use */
15static BUTTON * maxlevelButton=0;
16
17/* on click set min and max value of function to colorbar */
18static BUTTON * minMaxColorbar=0;
19
20/* global variables for iterator choice */
21static COMBOBUTTON * iteratorButton = 0;
22static int defaultIteratorValue = 0 ;
23
24/* global variables for partition type choice */
25static COMBOBUTTON * partitionTypeButton = 0;
26
27static TIMESCENE * globalTsc = 0;
28
29void setupLeafButton(MANAGER *mgr, void *sc, int yesTimeScene);
30void removeLeafButton(MANAGER *mgr, void *sc);
31void setDefaultIteratorValue(int val);
32
33#endif // end HAVE_GRAPE
34
35/* info about data on one mesh */
36typedef struct datainfo DATAINFO;
37struct datainfo
38{
39 const char * name;
40 const char * base_name;
41 DATAINFO *next;
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 */
48typedef struct info INFO;
49struct info
50{
51 int fix_mesh; /* if no dynamic grid 1 : else 0 */
52 const char *name;
53 DATAINFO * datinf;
54 void *tsc;
55};
56#endif // end DUNE_GRAPECOMMON_HH
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)