/[MITgcm]/MITgcm/verification/aim.5l_cs/code/EEPARAMS.h
ViewVC logotype

Contents of /MITgcm/verification/aim.5l_cs/code/EEPARAMS.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Jun 18 17:40:06 2001 UTC (22 years, 10 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint46b_post, checkpoint48f_post, checkpoint46k_post, checkpoint47j_post, checkpoint40pre1, checkpoint48d_pre, branch-exfmods-tag, checkpoint47e_post, checkpoint44h_pre, checkpoint47i_post, checkpoint48i_post, release1_p12, release1_p10, release1_p16, release1_p15, release1_p11, checkpoint47f_post, checkpoint48d_post, checkpoint46j_post, checkpoint47c_post, checkpoint50e_post, checkpoint50c_post, checkpoint47d_post, checkpoint44e_post, checkpoint40pre3, checkpoint44f_pre, checkpoint47a_post, checkpoint46c_post, checkpoint46f_post, checkpoint46l_pre, checkpoint46a_post, checkpoint48a_post, checkpoint46n_post, release1_beta1, checkpoint46d_pre, checkpoint48e_post, checkpoint46e_post, checkpoint45b_post, checkpoint48h_post, checkpoint50c_pre, release1-branch_tutorials, release1_p14, checkpoint44g_post, checkpoint46h_pre, checkpoint45c_post, checkpoint44h_post, checkpoint46l_post, checkpoint46e_pre, checkpoint43a-release1mods, checkpoint50d_pre, checkpoint45d_post, checkpoint46j_pre, checkpoint46b_pre, checkpoint47h_post, checkpoint48c_post, chkpt44a_pre, release1-branch-end, release1_final_v1, checkpoint51b_post, checkpoint46, checkpoint51c_post, checkpoint41, checkpoint44, release1_p13, checkpoint48, checkpoint49, checkpoint44f_post, checkpoint47b_post, checkpoint40pre2, checkpoint40pre5, checkpoint40pre6, checkpoint40pre8, checkpoint48g_post, release1_p17, release1_b1, checkpoint44b_post, chkpt44d_post, checkpoint42, checkpoint51, checkpoint50, release1_p8, release1_p9, checkpoint50d_post, checkpoint46m_post, checkpoint46g_pre, release1_p2, release1_p3, release1_p4, checkpoint51b_pre, release1_p6, checkpoint47g_post, chkpt44a_post, checkpoint44b_pre, release1_p1, checkpoint40pre4, checkpoint46a_pre, checkpoint50g_post, release1_p5, checkpoint44e_pre, chkpt44c_pre, checkpoint40pre9, release1_p7, checkpoint46d_post, checkpoint48b_post, checkpoint50b_post, checkpoint46g_post, checkpoint45a_post, release1_p13_pre, release1_p12_pre, checkpoint50f_post, checkpoint50a_post, checkpoint46c_pre, checkpoint50f_pre, checkpoint43, checkpoint47d_pre, checkpoint51d_post, checkpoint40, checkpoint48c_pre, release1-branch_branchpoint, checkpoint46i_post, checkpoint47, checkpoint40pre7, chkpt44c_post, checkpoint51a_post, checkpoint45, checkpoint46h_post, checkpoint50e_pre, checkpoint50i_post, release1_chkpt44d_post, checkpoint50b_pre
Branch point for: release1_coupled, release1_final, release1-branch, release1, release1_50yr, branch-exfmods-curt
File MIME type: text/plain
Add to main branch of
  o CS atmos with AIM physics
  o Multi-threaded AIM physics for LatLon and CS tests
  o Tidied up monitor() output

1 C $Header: /u/gcmpack/models/MITgcmUV/eesupp/inc/EEPARAMS.h,v 1.8.2.1 2001/03/28 17:37:41 adcroft Exp $
2 C $Name: $
3 C
4 C /==========================================================\
5 C | EEPARAMS.h |
6 C |==========================================================|
7 C | Parameters for "execution environemnt". These are used |
8 C | by both the particular numerical model and the "execution|
9 C | environment" support routines. |
10 C \==========================================================/
11
12 C MAX_LEN_MBUF - Default message buffer max. size
13 C MAX_LEN_FNAM - Default file name max. size
14 C MAX_LEN_PREC - Default record length for reading "parameter" files
15 INTEGER MAX_LEN_MBUF
16 PARAMETER ( MAX_LEN_MBUF = 512 )
17 INTEGER MAX_LEN_FNAM
18 PARAMETER ( MAX_LEN_FNAM = 512 )
19 INTEGER MAX_LEN_PREC
20 PARAMETER ( MAX_LEN_PREC = 200 )
21
22 C SQUEEZE_RIGHT - Flag indicating right blank space removal
23 C from text field.
24 C SQUEEZE_LEFT - Flag indicating left blank space removal
25 C from text field.
26 C SQUEEZE_BOTH - Flag indicating left and right blank
27 C space removal from text field.
28 C PRINT_MAP_XY - Flag indicating to plot map as XY slices
29 C PRINT_MAP_XZ - Flag indicating to plot map as XZ slices
30 C PRINT_MAP_YZ - Flag indicating to plot map as YZ slices
31 C commentCharacter - Variable used in column 1 of parameter files to
32 C indicate comments.
33 C INDEX_I - Variable used to select an index label
34 C INDEX_J for formatted input parameters.
35 C INDEX_K
36 C INDEX_NONE
37 CHARACTER*(*) SQUEEZE_RIGHT
38 PARAMETER ( SQUEEZE_RIGHT = 'R' )
39 CHARACTER*(*) SQUEEZE_LEFT
40 PARAMETER ( SQUEEZE_LEFT = 'L' )
41 CHARACTER*(*) SQUEEZE_BOTH
42 PARAMETER ( SQUEEZE_BOTH = 'B' )
43 CHARACTER*(*) PRINT_MAP_XY
44 PARAMETER ( PRINT_MAP_XY = 'XY' )
45 CHARACTER*(*) PRINT_MAP_XZ
46 PARAMETER ( PRINT_MAP_XZ = 'XZ' )
47 CHARACTER*(*) PRINT_MAP_YZ
48 PARAMETER ( PRINT_MAP_YZ = 'YZ' )
49 CHARACTER*(*) commentCharacter
50 PARAMETER ( commentCharacter = '#' )
51 INTEGER INDEX_I
52 INTEGER INDEX_J
53 INTEGER INDEX_K
54 INTEGER INDEX_NONE
55 PARAMETER ( INDEX_I = 1,
56 & INDEX_J = 2,
57 & INDEX_K = 3,
58 & INDEX_NONE = 4 )
59
60
61 C EXCH_IGNORE_CORNERS - Flag to select ignoring or
62 C EXCH_UPDATE_CORNERS updating of corners during
63 C an edge exchange.
64 INTEGER EXCH_IGNORE_CORNERS
65 INTEGER EXCH_UPDATE_CORNERS
66 PARAMETER ( EXCH_IGNORE_CORNERS = 0,
67 & EXCH_UPDATE_CORNERS = 1 )
68
69 C FORWARD_SIMULATION
70 C REVERSE_SIMULATION
71 INTEGER FORWARD_SIMULATION
72 INTEGER REVERSE_SIMULATION
73 PARAMETER ( FORWARD_SIMULATION = 0,
74 & REVERSE_SIMULATION = 1 )
75
76
77 C Particularly weird and obscure voodoo numbers
78 C lShare - This wants to be the length in
79 C [148]-byte words of the size of
80 C the address "window" that is snooped
81 C on an SMP bus. By separating elements in
82 C the global sum buffer we can avoid generating
83 C extraneous invalidate traffic between
84 C processors. The length of this window is usually
85 C a cache line i.e. small O(64 bytes).
86 C The buffer arrays are usually short arrays
87 C and are declared REAL ARRA(lShare[148],LBUFF).
88 C Setting lShare[148] to 1 is like making these arrays
89 C one dimensional.
90 INTEGER cacheLineSize
91 INTEGER lShare1
92 INTEGER lShare4
93 INTEGER lShare8
94 PARAMETER ( cacheLineSize = 256 )
95 PARAMETER ( lShare1 = cacheLineSize )
96 PARAMETER ( lShare4 = cacheLineSize/4 )
97 PARAMETER ( lShare8 = cacheLineSize/8 )
98
99 C MAX_NO_THREADS - Maximum number of threads allowed.
100 C MAX_NO_PROCS - Maximum number of processes allowed.
101 C MAX_NO_BARRIERS - Maximum number of distinct thread "barriers"
102 INTEGER MAX_NO_THREADS
103 PARAMETER ( MAX_NO_THREADS = 6 )
104 INTEGER MAX_NO_PROCS
105 PARAMETER ( MAX_NO_PROCS = 128 )
106 INTEGER MAX_NO_BARRIERS
107 PARAMETER ( MAX_NO_BARRIERS = 1 )
108
109 C-- COMMON /EEPARAMS_L/ Execution environment public logical variables.
110 C eeBootError - Flag indicating error during multi-processing
111 C eeEndError initialisation/termination.
112 C fatalError - Flag used to indicate that the model is ended with
113 C an error
114 COMMON /EEPARAMS_L/ eeBootError, fatalError, eeEndError,
115 & useCubedSphereExchange
116 LOGICAL eeBootError
117 LOGICAL eeEndError
118 LOGICAL fatalError
119 LOGICAL useCubedSphereExchange
120
121 C-- COMMON /EPARAMS_I/ Execution environment public integer variables.
122 C errorMessageUnit - Fortran IO unit for error messages
123 C standardMessageUnit - Fortran IO unit for informational messages
124 C scrUnit1 - Scratch file 1 unit number
125 C scrUnit2 - Scratch file 2 unit number
126 C eeDataUnit - Unit number used for reading "execution environment" parameter file.
127 C modelDataUnit - Unit number for reading "model" parameter file.
128 C numberOfProcs - Number of processes computing in parallel
129 C pidIO - Id of process to use for I/O.
130 C myBxLo, myBxHi - Extents of domain in blocks in X and Y
131 C myByLo, myByHi that each threads is responsble for.
132 C myProcId - My own "process" id.
133 C myPx - My X coord on the proc. grid.
134 C myPy - My Y coord on the proc. grid.
135 C myXGlobalLo - My bottom-left (south-west) x-index
136 C global domain. The x-coordinate of this
137 C point in for example m or degrees is *not*
138 C specified here. A model needs to provide a
139 C mechanism for deducing that information if it
140 C is needed.
141 C myYGlobalLo - My bottom-left (south-west) y-index in
142 C global domain. The y-coordinate of this
143 C point in for example m or degrees is *not*
144 C specified here. A model needs to provide a
145 C mechanism for deducing that information if it
146 C is needed.
147 C nThreads - No. of threads
148 C nTx - No. of threads in X
149 C nTy - No. of threads in Y
150 C This assumes a simple cartesian
151 C gridding of the threads which is not required elsewhere
152 C but that makes it easier.
153 C ioErrorCount - IO Error Counter. Set to zero initially and increased
154 C by one every time an IO error occurs.
155 COMMON /EEPARAMS_I/ errorMessageUnit, standardMessageUnit,
156 & scrUnit1, scrUnit2, eeDataUnit, modelDataUnit,
157 & numberOfProcs, pidIO, myProcId,
158 & myPx, myPy, myXGlobalLo, myYGlobalLo, nThreads,
159 & myBxLo, myBxHi, myByLo, myByHi,
160 & nTx, nTy, ioErrorCount
161 INTEGER eeDataUnit
162 INTEGER errorMessageUnit
163 INTEGER ioErrorCount(MAX_NO_THREADS)
164 INTEGER modelDataUnit
165 INTEGER myBxLo(MAX_NO_THREADS)
166 INTEGER myBxHi(MAX_NO_THREADS)
167 INTEGER myByLo(MAX_NO_THREADS)
168 INTEGER myByHi(MAX_NO_THREADS)
169 INTEGER myProcId
170 INTEGER myPx
171 INTEGER myPy
172 INTEGER myXGlobalLo
173 INTEGER myYGlobalLo
174 INTEGER nThreads
175 INTEGER nTx
176 INTEGER nTy
177 INTEGER numberOfProcs
178 INTEGER pidIO
179 INTEGER scrUnit1
180 INTEGER scrUnit2
181 INTEGER standardMessageUnit

  ViewVC Help
Powered by ViewVC 1.1.22