/[MITgcm]/MITgcm/model/src/packages_readparms.F
ViewVC logotype

Contents of /MITgcm/model/src/packages_readparms.F

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


Revision 1.43 - (show annotations) (download)
Thu Nov 3 16:23:33 2005 UTC (18 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57w_post, checkpoint57x_post
Changes since 1.42: +2 -7 lines
do model I/O initialisation in the dedicated S/R: ini_model_io.F
 (instead of in packages_readparms.F)

1 C $Header: /u/gcmpack/MITgcm/model/src/packages_readparms.F,v 1.42 2005/09/06 02:16:10 edhill 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 |-- SHAP_FILT_READPARMS
52 C |
53 C |-- ZONAL_FILT_READPARMS
54 C |
55 C |-- OBCS_READPARMS
56 C |
57 C |-- OFFLINE_READPARMS
58 C |
59 C |-- BULKF_READPARMS
60 C |
61 C |-- THSICE_READPARMS
62 C |
63 C |-- GCHEM_READPARMS
64 C |
65 C |-- OPTIM_READPARMS
66 C |
67 C |-- CTRL_READPARMS
68 C |
69 C |-- COST_READPARMS
70 C |
71 C |-- GRDCHK_READPARMS
72 C |
73 C |-- CAL_READPARMS
74 C |
75 C |-- EXF_READPARMS
76 C |
77 C |-- EBM_READPARMS
78 C |
79 C |-- ECCO_READPARMS
80 C |
81 C |-- CPL_READPARMS
82 C |
83 C |-- FIZHI_READPARMS
84 C |
85 C |-- CPL_READPARMS
86 C |
87 C |-- DIAGNOSTICS_READPARMS
88
89
90 C !USES:
91 IMPLICIT NONE
92 C == Global variables ==
93 #include "SIZE.h"
94 #include "EEPARAMS.h"
95 #include "PARAMS.h"
96
97 C == Routine arguments ==
98 INTEGER myThid
99 CEOP
100
101 #ifdef ALLOW_MNC
102 C Read run-time flags and initialize look-up tables for MNC
103 IF (useMNC) THEN
104 CALL MNC_READPARMS( myThid )
105 CALL MNC_INIT(myThid)
106 CALL MNC_CW_INIT(sNx,sNy,OLx,OLy,nSx,nSy,nPx,nPy,
107 & Nr,myThid)
108 CEH3 IF ( mnc_echo_gvtypes ) THEN
109 CEH3 CALL MNC_CW_DUMP( myThid )
110 CEH3 ENDIF
111 ENDIF
112 #endif
113
114 #ifdef ALLOW_RUNCLOCK
115 C-- Initialize RUNCLOCK parameters
116 IF (useRunClock) CALL RUNCLOCK_READPARMS( myThid )
117 #endif
118
119 #ifdef ALLOW_GMREDI
120 C-- Initialize GM/Redi parameters
121 IF (useGMRedi) CALL GMREDI_READPARMS( myThid )
122 #endif
123
124 #ifdef ALLOW_KPP
125 C-- Initialize KPP parameters
126 IF (useKPP) CALL KPP_READPARMS( myThid )
127 #endif
128
129 #ifdef ALLOW_PP81
130 C-- Initialize PP81 parameters
131 IF (usePP81) CALL PP81_READPARMS( myThid )
132 #endif
133
134 #ifdef ALLOW_MY82
135 C-- Initialize MY82 parameters
136 IF (useMY82) CALL MY82_READPARMS( myThid )
137 #endif
138
139 #ifdef ALLOW_GGL90
140 C-- Initialize GGL90 parameters
141 IF (useGGL90) CALL GGL90_READPARMS( myThid )
142 #endif
143
144 #ifdef ALLOW_OPPS
145 C-- Initialize OPPS parameters
146 IF (useOPPS) CALL OPPS_READPARMS( myThid )
147 #endif
148
149 #ifdef ALLOW_SBO
150 C-- Initialize SBO parameters
151 IF (useSBO) CALL SBO_READPARMS( myThid )
152 #endif
153
154 #ifdef ALLOW_SEAICE
155 C-- Initialize SEAICE parameters
156 IF (useSEAICE) CALL SEAICE_READPARMS( myThid )
157 #endif
158
159 #ifdef ALLOW_SHAP_FILT
160 IF (useSHAP_FILT) CALL SHAP_FILT_READPARMS( myThid )
161 #endif
162
163 #ifdef ALLOW_ZONAL_FILT
164 IF (useZONAL_FILT) CALL ZONAL_FILT_READPARMS( myThid )
165 #endif
166
167 #ifdef ALLOW_OBCS
168 IF (useOBCS) CALL OBCS_READPARMS( myThid )
169 #endif
170
171 #ifdef ALLOW_OFFLINE
172 call OFFLINE_READPARMS( myThid )
173 #endif
174
175 #ifdef ALLOW_BULK_FORCE
176 C -- initialize Bulkf parameters
177 IF (useBulkForce) CALL BULKF_READPARMS( myThid )
178 #endif
179
180 #ifdef ALLOW_THSICE
181 C -- initialize Therm.Sea-Ice parameters
182 IF (useThSIce) CALL THSICE_READPARMS( myThid )
183 #endif
184
185 #ifdef ALLOW_PTRACERS
186 IF (usePTRACERS) CALL PTRACERS_READPARMS( myThid )
187 #endif
188
189 cswdptr -- add --
190 #ifdef ALLOW_GCHEM
191 IF (useGCHEM) CALL GCHEM_READPARMS( myThid )
192 #endif
193 cswdptr -- end add ---
194
195 #ifdef ALLOW_CTRL
196 C-- Initialise the optim. parameters.
197 call optim_readparms( myThid )
198 C-- Initialise the control parameters
199 call ctrl_readparms( myThid )
200 #endif
201
202 #ifdef ALLOW_COST
203 C-- Initialise the cost parameters
204 call cost_readparms( mythid )
205 #endif
206
207 #ifdef ALLOW_GRDCHK
208 C-- Initialise gradient check parameters
209 if (useGrdchk) call grdchk_readparms( myThid )
210 #endif
211
212 #ifdef ALLOW_CAL
213 C-- Initialise the calendar package.
214 ceh3 should have an IF ( useCAL ) THEN
215 call cal_readparms( myThid )
216 #endif
217
218 C-- Custom routine to set forcing fields.
219 #ifdef ALLOW_EXF
220 ceh3 needs an IF ( useEXF ) THEN
221 call exf_readparms ( mythid )
222 #endif
223
224 #ifdef ALLOW_EBM
225 IF (useEBM) call ebm_readparms( mythid )
226 #endif
227
228 #ifdef ALLOW_ECCO
229 c-- Initialize ECCO package parameters
230 call ecco_readparms ( myThid )
231 #endif
232
233 #ifdef COMPONENT_MODULE
234 C-- set Coupling parameters
235 IF ( useCoupler ) CALL CPL_READPARMS( myThid )
236 #endif /* COMPONENT_MODULE */
237
238 CAMM
239 #ifdef ALLOW_FIZHI
240 C-- set model date and time and other fizhi parameters
241 IF ( usefizhi ) call fizhi_readparms(myThid )
242 #endif /* ALLOW_FIZHI */
243 CAMM
244
245 #ifdef ALLOW_DIAGNOSTICS
246 C-- set diagnostics choices
247 IF ( useDiagnostics ) CALL DIAGNOSTICS_READPARMS( myThid )
248 #endif /* ALLOW_DIAGNOSTICS */
249
250 #ifdef ALLOW_MATRIX
251 C-- Initialize matrix package parameters
252 IF (useMATRIX) CALL MATRIX_READPARMS ( myThid )
253 #endif
254
255 RETURN
256 END

  ViewVC Help
Powered by ViewVC 1.1.22