/[MITgcm]/MITgcm_contrib/sannino/GRID_Refinemet/code/packages_readparms.F
ViewVC logotype

Contents of /MITgcm_contrib/sannino/GRID_Refinemet/code/packages_readparms.F

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


Revision 1.1 - (show annotations) (download)
Thu Jul 20 21:08:14 2006 UTC (19 years ago) by sannino
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
o Adding OASIS package
o Adding grid refinement package

1 C $Header: /u/gcmpack/MITgcm/model/src/packages_readparms.F,v 1.46 2006/03/24 22:58:24 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 |-- NESTING_SON_READPARMS
92 C |
93 C |-- NESTING_FATHER_READPARMS
94 C |
95 C |-- OASIS_READPARMS
96
97 C !USES:
98 IMPLICIT NONE
99 C == Global variables ==
100 #include "SIZE.h"
101 #include "EEPARAMS.h"
102 #include "PARAMS.h"
103
104 C == Routine arguments ==
105 INTEGER myThid
106 CEOP
107
108 #ifdef ALLOW_MNC
109 C Read run-time flags and initialize look-up tables for MNC
110 IF (useMNC) THEN
111 CALL MNC_READPARMS( myThid )
112 CALL MNC_INIT(myThid)
113 CALL MNC_CW_INIT(sNx,sNy,OLx,OLy,nSx,nSy,nPx,nPy,
114 & Nr,myThid)
115 CEH3 IF ( mnc_echo_gvtypes ) THEN
116 CEH3 CALL MNC_CW_DUMP( myThid )
117 CEH3 ENDIF
118 ENDIF
119 #endif
120
121 #ifdef ALLOW_RUNCLOCK
122 C-- Initialize RUNCLOCK parameters
123 IF (useRunClock) CALL RUNCLOCK_READPARMS( myThid )
124 #endif
125
126 #ifdef ALLOW_GMREDI
127 C-- Initialize GM/Redi parameters
128 IF (useGMRedi) CALL GMREDI_READPARMS( myThid )
129 #endif
130
131 #ifdef ALLOW_KPP
132 C-- Initialize KPP parameters
133 IF (useKPP) CALL KPP_READPARMS( myThid )
134 #endif
135
136 #ifdef ALLOW_PP81
137 C-- Initialize PP81 parameters
138 IF (usePP81) CALL PP81_READPARMS( myThid )
139 #endif
140
141 #ifdef ALLOW_MY82
142 C-- Initialize MY82 parameters
143 IF (useMY82) CALL MY82_READPARMS( myThid )
144 #endif
145
146 #ifdef ALLOW_GGL90
147 C-- Initialize GGL90 parameters
148 IF (useGGL90) CALL GGL90_READPARMS( myThid )
149 #endif
150
151 #ifdef ALLOW_OPPS
152 C-- Initialize OPPS parameters
153 IF (useOPPS) CALL OPPS_READPARMS( myThid )
154 #endif
155
156 #ifdef ALLOW_SBO
157 C-- Initialize SBO parameters
158 IF (useSBO) CALL SBO_READPARMS( myThid )
159 #endif
160
161 #ifdef ALLOW_SEAICE
162 C-- Initialize SEAICE parameters
163 IF (useSEAICE) CALL SEAICE_READPARMS( myThid )
164 #endif
165
166 #ifdef ALLOW_SHELFICE
167 C-- Initialize SHELFICE parameters
168 IF (useShelfIce) CALL SHELFICE_READPARMS( myThid )
169 #endif
170
171 #ifdef ALLOW_SHAP_FILT
172 IF (useSHAP_FILT) CALL SHAP_FILT_READPARMS( myThid )
173 #endif
174
175 #ifdef ALLOW_ZONAL_FILT
176 IF (useZONAL_FILT) CALL ZONAL_FILT_READPARMS( myThid )
177 #endif
178
179 #ifdef ALLOW_OBCS
180 IF (useOBCS) CALL OBCS_READPARMS( myThid )
181 #endif
182
183 #ifdef ALLOW_OFFLINE
184 call OFFLINE_READPARMS( myThid )
185 #endif
186
187 #ifdef ALLOW_BULK_FORCE
188 C -- initialize Bulkf parameters
189 IF (useBulkForce) CALL BULKF_READPARMS( myThid )
190 #endif
191
192 #ifdef ALLOW_THSICE
193 C -- initialize Therm.Sea-Ice parameters
194 IF (useThSIce) CALL THSICE_READPARMS( myThid )
195 #endif
196
197 #ifdef ALLOW_PTRACERS
198 IF (usePTRACERS) CALL PTRACERS_READPARMS( myThid )
199 #endif
200
201 #ifdef ALLOW_GCHEM
202 IF (useGCHEM) CALL GCHEM_READPARMS( myThid )
203 #endif
204
205 #ifdef ALLOW_RBCS
206 IF (useRBCS) CALL RBCS_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 cgmNESTING(
275 #ifdef ALLOW_NESTING_SON
276 C-- Initialize nesting package parameters x SON
277 IF (useNESTING_SON) CALL NESTING_SON_READPARMS ( myThid )
278 #endif
279 C
280 #ifdef ALLOW_NESTING_FATHER
281 C-- Initialize nesting package parameters x FATHER
282 IF (useNESTING_FATHER) CALL NESTING_FATHER_READPARMS ( myThid )
283 #endif
284 cgmNESTING)
285
286 cgmOASIS(
287 #ifdef ALLOW_OASIS
288 C-- Initialize matrix package parameters
289 IF (useOASIS) CALL OASIS_READPARMS ( myThid )
290 #endif
291 cgmOASIS)
292
293 RETURN
294 END

  ViewVC Help
Powered by ViewVC 1.1.22