1 |
edhill |
1.1 |
C $Header: /u/gcmpack/MITgcm/model/src/packages_readparms.F,v 1.47 2006/06/28 21:24:55 heimbach Exp $ |
2 |
|
|
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "PACKAGES_CONFIG.h" |
5 |
|
|
#include "CPP_OPTIONS.h" |
6 |
|
|
|
7 |
|
|
CStartOfInterface |
8 |
|
|
CBOP |
9 |
|
|
C !ROUTINE: PACKAGES_READPARMS |
10 |
|
|
C !INTERFACE: |
11 |
|
|
SUBROUTINE PACKAGES_READPARMS(myThid) |
12 |
|
|
|
13 |
|
|
C !DESCRIPTION: \bv |
14 |
|
|
C *==========================================================* |
15 |
|
|
C | SUBROUTINE PACKAGES_READPARMS |
16 |
|
|
C | o Read runtime package configuration parameters |
17 |
|
|
C *==========================================================* |
18 |
|
|
C | Packages can have internal runtime configuration |
19 |
|
|
C | parameters. A package provides a routine |
20 |
|
|
C | ${PKGNAME}_READ_PARMS to read these parameters. In |
21 |
|
|
C | general this routine should read parameters from a file |
22 |
|
|
C | called data.${pkgname}. |
23 |
|
|
C | This routine (S/R PACKAGES_READPARMS) calls per-package |
24 |
|
|
C | parameter reading routines. |
25 |
|
|
C *==========================================================* |
26 |
|
|
C \ev |
27 |
|
|
|
28 |
|
|
C !CALLING SEQUENCE: |
29 |
|
|
C PACKAGES_READPARMS |
30 |
|
|
C | |
31 |
|
|
C |-- MNC_READPARMS + MNC_INIT + MNC_CW_INIT |
32 |
|
|
C | |
33 |
|
|
C |-- RUNCLOCK_READPARMS |
34 |
|
|
C | |
35 |
|
|
C |-- GMREDI_READPARMS |
36 |
|
|
C | |
37 |
|
|
C |-- KPP_READPARMS |
38 |
|
|
C | |
39 |
|
|
C |-- PP81_READPARMS |
40 |
|
|
C | |
41 |
|
|
C |-- MY82_READPARMS |
42 |
|
|
C | |
43 |
|
|
C |-- GGL90_READPARMS |
44 |
|
|
C | |
45 |
|
|
C |-- OPPS_READPARMS |
46 |
|
|
C | |
47 |
|
|
C |-- SBO_READPARMS |
48 |
|
|
C | |
49 |
|
|
C |-- SEAICE_READPARMS |
50 |
|
|
C | |
51 |
|
|
C |-- SHELFICE_READPARMS |
52 |
|
|
C | |
53 |
|
|
C |-- SHAP_FILT_READPARMS |
54 |
|
|
C | |
55 |
|
|
C |-- ZONAL_FILT_READPARMS |
56 |
|
|
C | |
57 |
|
|
C |-- OBCS_READPARMS |
58 |
|
|
C | |
59 |
|
|
C |-- OFFLINE_READPARMS |
60 |
|
|
C | |
61 |
|
|
C |-- BULKF_READPARMS |
62 |
|
|
C | |
63 |
|
|
C |-- THSICE_READPARMS |
64 |
|
|
C | |
65 |
|
|
C |-- GCHEM_READPARMS |
66 |
|
|
C | |
67 |
|
|
C |-- OPTIM_READPARMS |
68 |
|
|
C | |
69 |
|
|
C |-- CTRL_READPARMS |
70 |
|
|
C | |
71 |
|
|
C |-- COST_READPARMS |
72 |
|
|
C | |
73 |
|
|
C |-- GRDCHK_READPARMS |
74 |
|
|
C | |
75 |
|
|
C |-- CAL_READPARMS |
76 |
|
|
C | |
77 |
|
|
C |-- EXF_READPARMS |
78 |
|
|
C | |
79 |
|
|
C |-- EBM_READPARMS |
80 |
|
|
C | |
81 |
|
|
C |-- ECCO_READPARMS |
82 |
|
|
C | |
83 |
|
|
C |-- CPL_READPARMS |
84 |
|
|
C | |
85 |
|
|
C |-- FIZHI_READPARMS |
86 |
|
|
C | |
87 |
|
|
C |-- CPL_READPARMS |
88 |
|
|
C | |
89 |
|
|
C |-- DIAGNOSTICS_READPARMS |
90 |
|
|
C | |
91 |
|
|
C |-- REGRID_READPARMS |
92 |
|
|
|
93 |
|
|
C !USES: |
94 |
|
|
IMPLICIT NONE |
95 |
|
|
C == Global variables == |
96 |
|
|
#include "SIZE.h" |
97 |
|
|
#include "EEPARAMS.h" |
98 |
|
|
#include "PARAMS.h" |
99 |
|
|
|
100 |
|
|
C == Routine arguments == |
101 |
|
|
INTEGER myThid |
102 |
|
|
CEOP |
103 |
|
|
|
104 |
|
|
#ifdef ALLOW_MNC |
105 |
|
|
C Read run-time flags and initialize look-up tables for MNC |
106 |
|
|
IF (useMNC) THEN |
107 |
|
|
CALL MNC_READPARMS( myThid ) |
108 |
|
|
CALL MNC_INIT(myThid) |
109 |
|
|
CALL MNC_CW_INIT(sNx,sNy,OLx,OLy,nSx,nSy,nPx,nPy, |
110 |
|
|
& Nr,myThid) |
111 |
|
|
CEH3 IF ( mnc_echo_gvtypes ) THEN |
112 |
|
|
CEH3 CALL MNC_CW_DUMP( myThid ) |
113 |
|
|
CEH3 ENDIF |
114 |
|
|
ENDIF |
115 |
|
|
#endif |
116 |
|
|
|
117 |
|
|
#ifdef ALLOW_RUNCLOCK |
118 |
|
|
C-- Initialize RUNCLOCK parameters |
119 |
|
|
IF (useRunClock) CALL RUNCLOCK_READPARMS( myThid ) |
120 |
|
|
#endif |
121 |
|
|
|
122 |
|
|
#ifdef ALLOW_GMREDI |
123 |
|
|
C-- Initialize GM/Redi parameters |
124 |
|
|
IF (useGMRedi) CALL GMREDI_READPARMS( myThid ) |
125 |
|
|
#endif |
126 |
|
|
|
127 |
|
|
#ifdef ALLOW_KPP |
128 |
|
|
C-- Initialize KPP parameters |
129 |
|
|
IF (useKPP) CALL KPP_READPARMS( myThid ) |
130 |
|
|
#endif |
131 |
|
|
|
132 |
|
|
#ifdef ALLOW_PP81 |
133 |
|
|
C-- Initialize PP81 parameters |
134 |
|
|
IF (usePP81) CALL PP81_READPARMS( myThid ) |
135 |
|
|
#endif |
136 |
|
|
|
137 |
|
|
#ifdef ALLOW_MY82 |
138 |
|
|
C-- Initialize MY82 parameters |
139 |
|
|
IF (useMY82) CALL MY82_READPARMS( myThid ) |
140 |
|
|
#endif |
141 |
|
|
|
142 |
|
|
#ifdef ALLOW_GGL90 |
143 |
|
|
C-- Initialize GGL90 parameters |
144 |
|
|
IF (useGGL90) CALL GGL90_READPARMS( myThid ) |
145 |
|
|
#endif |
146 |
|
|
|
147 |
|
|
#ifdef ALLOW_OPPS |
148 |
|
|
C-- Initialize OPPS parameters |
149 |
|
|
IF (useOPPS) CALL OPPS_READPARMS( myThid ) |
150 |
|
|
#endif |
151 |
|
|
|
152 |
|
|
#ifdef ALLOW_SBO |
153 |
|
|
C-- Initialize SBO parameters |
154 |
|
|
IF (useSBO) CALL SBO_READPARMS( myThid ) |
155 |
|
|
#endif |
156 |
|
|
|
157 |
|
|
#ifdef ALLOW_SEAICE |
158 |
|
|
C-- Initialize SEAICE parameters |
159 |
|
|
IF (useSEAICE) CALL SEAICE_READPARMS( myThid ) |
160 |
|
|
#endif |
161 |
|
|
|
162 |
|
|
#ifdef ALLOW_SHELFICE |
163 |
|
|
C-- Initialize SHELFICE parameters |
164 |
|
|
IF (useShelfIce) CALL SHELFICE_READPARMS( myThid ) |
165 |
|
|
#endif |
166 |
|
|
|
167 |
|
|
#ifdef ALLOW_SHAP_FILT |
168 |
|
|
IF (useSHAP_FILT) CALL SHAP_FILT_READPARMS( myThid ) |
169 |
|
|
#endif |
170 |
|
|
|
171 |
|
|
#ifdef ALLOW_ZONAL_FILT |
172 |
|
|
IF (useZONAL_FILT) CALL ZONAL_FILT_READPARMS( myThid ) |
173 |
|
|
#endif |
174 |
|
|
|
175 |
|
|
#ifdef ALLOW_OBCS |
176 |
|
|
IF (useOBCS) CALL OBCS_READPARMS( myThid ) |
177 |
|
|
#endif |
178 |
|
|
|
179 |
|
|
#ifdef ALLOW_OFFLINE |
180 |
|
|
call OFFLINE_READPARMS( myThid ) |
181 |
|
|
#endif |
182 |
|
|
|
183 |
|
|
#ifdef ALLOW_BULK_FORCE |
184 |
|
|
C -- initialize Bulkf parameters |
185 |
|
|
IF (useBulkForce) CALL BULKF_READPARMS( myThid ) |
186 |
|
|
#endif |
187 |
|
|
|
188 |
|
|
#ifdef ALLOW_THSICE |
189 |
|
|
C -- initialize Therm.Sea-Ice parameters |
190 |
|
|
IF (useThSIce) CALL THSICE_READPARMS( myThid ) |
191 |
|
|
#endif |
192 |
|
|
|
193 |
|
|
#ifdef ALLOW_PTRACERS |
194 |
|
|
IF (usePTRACERS) CALL PTRACERS_READPARMS( myThid ) |
195 |
|
|
#endif |
196 |
|
|
|
197 |
|
|
#ifdef ALLOW_GCHEM |
198 |
|
|
IF (useGCHEM) CALL GCHEM_READPARMS( myThid ) |
199 |
|
|
#endif |
200 |
|
|
|
201 |
|
|
#ifdef ALLOW_RBCS |
202 |
|
|
IF (useRBCS) CALL RBCS_READPARMS( myThid ) |
203 |
|
|
#endif |
204 |
|
|
|
205 |
|
|
#ifdef ALLOW_MYPACKAGE |
206 |
|
|
IF (useMYPACKAGE) CALL MYPACKAGE_READPARMS( myThid ) |
207 |
|
|
#endif |
208 |
|
|
|
209 |
|
|
#ifdef ALLOW_CTRL |
210 |
|
|
C-- Initialise the optim. parameters. |
211 |
|
|
call optim_readparms( myThid ) |
212 |
|
|
C-- Initialise the control parameters |
213 |
|
|
call ctrl_readparms( myThid ) |
214 |
|
|
#endif |
215 |
|
|
|
216 |
|
|
#ifdef ALLOW_COST |
217 |
|
|
C-- Initialise the cost parameters |
218 |
|
|
call cost_readparms( mythid ) |
219 |
|
|
#endif |
220 |
|
|
|
221 |
|
|
#ifdef ALLOW_GRDCHK |
222 |
|
|
C-- Initialise gradient check parameters |
223 |
|
|
if (useGrdchk) call grdchk_readparms( myThid ) |
224 |
|
|
#endif |
225 |
|
|
|
226 |
|
|
#ifdef ALLOW_CAL |
227 |
|
|
C-- Initialise the calendar package. |
228 |
|
|
ceh3 should have an IF ( useCAL ) THEN |
229 |
|
|
call cal_readparms( myThid ) |
230 |
|
|
#endif |
231 |
|
|
|
232 |
|
|
C-- Custom routine to set forcing fields. |
233 |
|
|
#ifdef ALLOW_EXF |
234 |
|
|
ceh3 needs an IF ( useEXF ) THEN |
235 |
|
|
call exf_readparms ( mythid ) |
236 |
|
|
#endif |
237 |
|
|
|
238 |
|
|
#ifdef ALLOW_EBM |
239 |
|
|
IF (useEBM) call ebm_readparms( mythid ) |
240 |
|
|
#endif |
241 |
|
|
|
242 |
|
|
#ifdef ALLOW_ECCO |
243 |
|
|
c-- Initialize ECCO package parameters |
244 |
|
|
call ecco_readparms ( myThid ) |
245 |
|
|
#endif |
246 |
|
|
|
247 |
|
|
#ifdef ALLOW_PROFILES |
248 |
|
|
c-- Initialize PROFILES package parameters |
249 |
|
|
call profiles_readparms ( myThid ) |
250 |
|
|
#endif |
251 |
|
|
|
252 |
|
|
#ifdef COMPONENT_MODULE |
253 |
|
|
C-- set Coupling parameters |
254 |
|
|
IF ( useCoupler ) CALL CPL_READPARMS( myThid ) |
255 |
|
|
#endif /* COMPONENT_MODULE */ |
256 |
|
|
|
257 |
|
|
CAMM |
258 |
|
|
#ifdef ALLOW_FIZHI |
259 |
|
|
C-- set model date and time and other fizhi parameters |
260 |
|
|
IF ( usefizhi ) call fizhi_readparms(myThid ) |
261 |
|
|
#endif /* ALLOW_FIZHI */ |
262 |
|
|
CAMM |
263 |
|
|
|
264 |
|
|
#ifdef ALLOW_DIAGNOSTICS |
265 |
|
|
C-- set diagnostics choices |
266 |
|
|
IF ( useDiagnostics ) CALL DIAGNOSTICS_READPARMS( myThid ) |
267 |
|
|
#endif /* ALLOW_DIAGNOSTICS */ |
268 |
|
|
|
269 |
|
|
#ifdef ALLOW_MATRIX |
270 |
|
|
C-- Initialize matrix package parameters |
271 |
|
|
IF (useMATRIX) CALL MATRIX_READPARMS ( myThid ) |
272 |
|
|
#endif |
273 |
|
|
|
274 |
|
|
#ifdef ALLOW_REGRID |
275 |
|
|
IF ( useREGRID ) CALL REGRID_READPARMS( myThid ) |
276 |
|
|
#endif /* ALLOW_REGRID */ |
277 |
|
|
|
278 |
|
|
RETURN |
279 |
|
|
END |