OpenFAST
Wind turbine multiphysics simulator
registry.h
1 #ifndef REGISTRY_H
2 #define NAMELEN 512
3 #define NAMELEN_LONG 12500 /*changed from 8192 to 12500 by PNNL on 12/22/2010*/
4 #define MAXDIMS 21
5 #define MAX_DYNCORES 50 /* ha ha, just kidding */
6 /* #define MAX_ARGLINE 175 WRF uses 128 by default, but the nested chem version hit the continuation line limit for efc so it had to be increased, wig 14-Oct-2004 */
7 #define MAX_ARGLINE 128 /* welp, 175 means lines longer than 130 chars, which is a Fortran no no */
8 #define MAX_TYPEDEFS 50 /* typedef history -ajb */
9 #define MAXTOKENS 100
10 
11 /* defines of system commands */
12 #define UNIQSORT "/bin/sort -u"
13 #define CATCOMM "/bin/cat"
14 #define RMCOMM "/bin/rm"
15 #define MVCOMM "/bin/mv"
16 
17 #define DRIVER_LAYER 100
18 #define MEDIATION_LAYER 200
19 
20 enum coord_axis { COORD_X , COORD_Y , COORD_Z , COORD_C } ;
21 enum len_defined_how { DOMAIN_STANDARD , NAMELIST , CONSTANT } ;
22 enum type_type { SIMPLE , DERIVED } ;
23 enum proc_orient { ALL_Z_ON_PROC , ALL_X_ON_PROC , ALL_Y_ON_PROC } ;
24 
25 /* wrapping options */
26 #define PERIOD_2PI 2
27 #define PERIOD_OTHER 1
28 #define PERIOD_NONE 0
29 
30 
31 /* node_kind mask settings */
32 #define FIELD 1
33 #define PARAM 2
34 #define RCONFIG 4
35 #define FOURD 8
36 #define MEMBER 16
37 #define TYPE 32
38 #define DIM 64
39 #define MODNAME 128
40 #define HALO 256
41 #define PERIOD 512
42 #define SWAP 1024
43 #define CYCLE 2048
44 #define XPOSE 4096
45 #define FOURD1 8192
46 #define BDYONLY 16384
47 
48 #define RESTART 0x02000000 /* 25 */
49 #define BOUNDARY 0x04000000 /* 26 */
50 #define INTERP_DOWN 0x08000000 /* 27 */
51 #define FORCE_DOWN 0x10000000 /* 28 */
52 #define INTERP_UP 0x20000000 /* 29 */
53 #define SMOOTH_UP 0x40000000 /* 20 */
54 #define METADATA 0x80000000 /* 31 */
55 
56 
57 #define REGISTRY_H
58 #endif
59 
60 #ifdef WIN32
61 #define snprintf _snprintf
62 #endif
63