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

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

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


Revision 1.43 - (show annotations) (download)
Thu Aug 25 16:11:30 2005 UTC (18 years, 9 months ago) by heimbach
Branch: MAIN
Changes since 1.42: +8 -1 lines
Moving seaice-related cost to pkg/seaice/

1 C $Header: /u/gcmpack/MITgcm/model/src/packages_init_fixed.F,v 1.42 2005/08/01 21:07:34 edhill Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: PACKAGES_INIT_FIXED
9 C !INTERFACE:
10 SUBROUTINE PACKAGES_INIT_FIXED( myThid )
11
12 C !DESCRIPTION: \bv
13 C *==========================================================*
14 C | SUBROUTINE PACKAGES_INIT_FIXED
15 C | o Does initialisation of package-related fixed fields
16 C *==========================================================*
17 C \ev
18
19 C !CALLING SEQUENCE:
20 C PACKAGES_INIT_FIXED
21 C |
22 C |-- RUNCLOCK_INIT
23 C |
24 C |-- DIAGNOSTICS_INIT_EARLY
25 C |-- DIAGNOSTICS_MAIN_INIT
26 C |
27 C |-- GAD_INIT
28 C |
29 C |-- CD_CODE_INIT_FIXED
30 C |
31 C |-- EXF_INIT_FIXED
32 C |
33 C |-- GMREDI_INIT_FIXED
34 C |
35 C |-- KPP_INIT_FIXED
36 C |
37 C |-- OPPS_INIT
38 C |
39 C |-- OBCS_INIT_FIXED
40 C |
41 C |-- FLT_INIT
42 C |
43 C |-- TIMEAVE_INIT_FIXED
44 C |
45 C |-- SHAP_FILT_INIT_FIZED
46 C |
47 C |-- ZONAL_FILT_INIT
48 C |
49 C |-- ATM_DIAGNOSTICS_INIT
50 C |
51 C |-- AIM_INITIALISE
52 C |
53 C |-- GRIDALT_INITIALISE
54 C |
55 C |-- FIZHI_INIT_FIXED
56 C |
57 C |-- LAND_INITIALISE
58 C |
59 C |-- ECCO_COST_INIT_FIXED
60 C |
61 C |-- CTRL_INIT
62 C |
63 C |-- PTRACERS_INITIALISE
64 C |
65 C |-- GCHEM_INIT_FIXED
66 C |
67 C |-- DIC_INIT_FIXED
68 C |
69 C |-- THSICE_INIT_FIXED
70 C |
71 C |-- CPL_INIT_FIXED
72 C |
73 C |-- DIAGNOSTICS_INIT_FIXED
74
75 C !USES:
76 IMPLICIT NONE
77 C === Global variables ===
78 #include "SIZE.h"
79 #include "EEPARAMS.h"
80 #include "PARAMS.h"
81
82 C !INPUT/OUTPUT PARAMETERS:
83 C === Routine arguments ===
84 C myThid - Number of this instances
85 INTEGER myThid
86 CEOP
87
88 #ifdef ALLOW_RUNCLOCK
89 IF ( useRunClock ) THEN
90 CALL RUNCLOCK_INIT( myThid )
91 ENDIF
92 #endif
93
94 #ifdef ALLOW_DIAGNOSTICS
95 IF ( useDiagnostics ) THEN
96 CALL DIAGNOSTICS_INIT_EARLY( myThid )
97 CALL DIAGNOSTICS_MAIN_INIT( myThid )
98 ENDIF
99 #endif
100
101 #ifdef ALLOW_GENERIC_ADVDIFF
102 C-- Initialize fixed params for GAD
103 CALL GAD_INIT( myThid )
104 #endif
105
106 #ifdef ALLOW_CD_CODE
107 IF (useCDscheme) THEN
108 CALL CD_CODE_INIT_FIXED(mythid)
109 ENDIF
110 #endif
111
112 #ifdef ALLOW_EXF
113 C-- Initialize fixed arrays for EXF
114 c IF ( useEXF ) THEN
115 CALL EXF_INIT_FIXED( myThid )
116 c ENDIF
117 #endif
118
119 #ifdef ALLOW_GMREDI
120 C-- Initialize fixed arrays for GM-Redi
121 IF ( useGMRedi ) THEN
122 CALL GMREDI_INIT_FIXED( myThid )
123 ENDIF
124 #endif
125
126 #ifdef ALLOW_KPP
127 C-- Initialize fixed arrays for KPP
128 IF ( useKPP ) THEN
129 CALL KPP_INIT_FIXED( myThid )
130 ENDIF
131 #endif
132
133 #ifdef ALLOW_OPPS
134 IF (useOPPS) CALL OPPS_INIT( myThid )
135 #endif /* ALLOW_OPPS */
136
137 C-- Initialize fixed arrays for OBCS
138 #ifdef ALLOW_OBCS
139 IF (useOBCS) THEN
140 CALL OBCS_INIT_FIXED( myThid )
141 ENDIF
142 #endif
143
144 #ifdef ALLOW_FLT
145 C-- Initialise Float positions
146 IF (useFLT) THEN
147 CALL FLT_INIT(nIter0,startTime,myThid )
148 _BARRIER
149 ENDIF
150 #endif
151
152 #ifdef ALLOW_TIMEAVE
153 C IF (useTIMEAVE) THEN
154 IF ( taveFreq.GT.0. ) THEN
155 CALL TIMEAVE_INIT_FIXED( myThid )
156 ENDIF
157 #endif
158
159 #ifdef ALLOW_SHAP_FILT
160 C-- Shapiro filter initialisation
161 IF (useSHAP_FILT) THEN
162 CALL SHAP_FILT_INIT_FIXED( myThid )
163 ENDIF
164 #endif
165
166 #ifdef ALLOW_ZONAL_FILT
167 C-- Latitude circle filter initialisation
168 IF (useZONAL_FILT) THEN
169 CALL ZONAL_FILT_INIT(myThid)
170 _BARRIER
171 ENDIF
172 #endif
173
174 #ifdef ALLOW_AIM
175 C-- Initialise & Read AIM physical parameters
176 IF (useAIM) CALL AIM_INITIALISE( myThid )
177 #endif
178
179 C AMM
180 #ifdef ALLOW_GRIDALT
181 C-- Initialise GRIDALT parameters - the alternative grid
182 IF (useGRIDALT) then
183 CALL TIMER_START('GRIDALT_INITIALISE [PACKAGES_INIT_F]',mythid)
184 CALL GRIDALT_INITIALISE( myThid )
185 CALL TIMER_STOP ('GRIDALT_INITIALISE [PACKAGES_INIT_F]',mythid)
186 ENDIF
187
188 #endif
189
190 #ifdef ALLOW_FIZHI
191 C-- Initialise & Read FIZHI physical parameters
192 IF (useFIZHI) CALL FIZHI_INIT_FIXED( myThid )
193 #endif
194 C AMM
195
196 #ifdef ALLOW_LAND
197 C-- Initialise & Read Land package parameters
198 IF (useLand) CALL LAND_INITIALISE( myThid )
199 #endif
200
201 #if (defined (ALLOW_SEAICE) && defined (ALLOW_COST))
202 C-- Initialise ecco-specific cost function.
203 C-- This needs to preceed the call ctrl_init
204 C-- in order to provide the weight files
205 CALL SEAICE_COST_INIT_FIXED( myThid )
206 #endif
207
208 #if (defined (ALLOW_ECCO) && defined (ALLOW_COST))
209 C-- Initialise ecco-specific cost function.
210 C-- This needs to preceed the call ctrl_init
211 C-- in order to provide the weight files
212 CALL ECCO_COST_INIT_FIXED( myThid )
213 #endif
214
215 #ifdef ALLOW_AUTODIFF
216 C-- Initialise the control variables
217 CALL CTRL_INIT( myThid )
218 _BARRIER
219 #endif
220
221 #ifdef ALLOW_PTRACERS
222 IF (usePTRACERS) CALL PTRACERS_INITIALISE(mythid)
223 #endif
224
225 #ifdef ALLOW_GCHEM
226 IF (useGCHEM) CALL GCHEM_INIT_FIXED(mythid)
227 #endif
228
229 #ifdef ALLOW_DIC
230 C IF (useDIC)
231 CALL DIC_INIT_FIXED(mythid)
232 #endif
233
234 #ifdef ALLOW_THSICE
235 IF (useThSIce) CALL THSICE_INIT_FIXED(mythid)
236 #endif
237
238 #ifdef COMPONENT_MODULE
239 IF ( useCoupler ) CALL CPL_INIT_FIXED( mythid )
240 #endif
241
242 #ifdef ALLOW_DIAGNOSTICS
243 IF ( useDiagnostics ) THEN
244 CALL DIAGNOSTICS_INIT_FIXED( myThid )
245 ENDIF
246 #endif
247
248 RETURN
249 END

  ViewVC Help
Powered by ViewVC 1.1.22