aboutsummaryrefslogtreecommitdiff
path: root/src/include/pugh_constants.h
blob: d9a919fee7d98b453aeeb726a3b269135d12cbc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 /*@@
   @file      pugh_constants.h
   @date      
   @author    
   @desc 
   @enddesc 
   @version $Id$
 @@*/

/* Pre-processor constants start with PUGH_ */

/* Constants for the comm directions */
#define PUGH_NOCOMM 0
#define PUGH_ALLCOMM 1
#define PUGH_PLUSFACESCOMM 2
#define PUGH_MINUSFACESCOMM 3
#define PUGH_COMM(i) i+4 

/* Constants for the storage */
#define PUGH_NOSTORAGE        0
#define PUGH_STORAGE          1

/* Constants for the GF Type. Only one now ... */
/* Number of staggerings available in the code */
#define PUGH_NSTAGGER 4

/* The index for each staggering type */
/* This classifies each PGF member */
#define PUGH_VERTEXCTR 0
#define PUGH_FACECTR(i) i+1

/* The index for each staggering type */
/* This determines the PGH should be set up */
#define PUGH_NO_STAGGER 0
#define PUGH_STAGGER 1

/* Comm types available */
#define PUGH_NOCOMMBUFFERS    0
#define PUGH_ALLOCATEDBUFFERS 1
#define PUGH_DERIVEDTYPES     2

/* Termination flags */
#define TERMINATION_NOT_RAISED     0    /* no termination flag, inital setting      */
#define TERMINATION_RAISED_LOCAL   1    /* raised on one pe, has to be broadcasted  */
#define TERMINATION_RAISED_BRDCAST 2    /* flag now available on all pes: termiante */

/* PUGH error flags */
#define PUGH_SUCCESS      0
#define PUGH_ERROR       -1
#define PUGH_ERRORMEMORY -2