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

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

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

revision 1.2 by adcroft, Fri Feb 2 21:04:48 2001 UTC revision 1.48 by heimbach, Sat May 6 14:33:25 2006 UTC
# Line 1  Line 1 
1  C $Header$  C $Header$
2  C $Name$  C $Name$
3    
4    #include "PACKAGES_CONFIG.h"
5  #include "CPP_OPTIONS.h"  #include "CPP_OPTIONS.h"
6    
7    CBOP
8    C     !ROUTINE: PACKAGES_INIT_FIXED
9    C     !INTERFACE:
10        SUBROUTINE PACKAGES_INIT_FIXED( myThid )        SUBROUTINE PACKAGES_INIT_FIXED( myThid )
 C     /==========================================================\  
 C     | SUBROUTINE PACKAGES_INIT_FIXED                           |  
 C     | o Does initialisation of package-related fixed fields    |  
 C     |==========================================================|  
 C     \==========================================================/  
       IMPLICIT NONE  
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       |-- MOM_INIT_FIXED
30    C       |
31    C       |-- CD_CODE_INIT_FIXED
32    C       |
33    C       |-- EXF_INIT_FIXED
34    C       |
35    C       |-- GMREDI_INIT_FIXED
36    C       |
37    C       |-- KPP_INIT_FIXED
38    C       |
39    C       |-- OPPS_INIT
40    C       |
41    C       |-- OBCS_INIT_FIXED
42    C       |
43    C       |-- FLT_INIT
44    C       |
45    C       |-- TIMEAVE_INIT_FIXED
46    C       |
47    C       |-- SHAP_FILT_INIT_FIZED
48    C       |
49    C       |-- ZONAL_FILT_INIT
50    C       |
51    C       |-- ATM_DIAGNOSTICS_INIT
52    C       |
53    C       |-- AIM_INITIALISE
54    C       |
55    C       |-- GRIDALT_INITIALISE
56    C       |
57    C       |-- FIZHI_INIT_FIXED
58    C       |
59    C       |-- LAND_INITIALISE
60    C       |
61    C       |-- SEAICE_COST_INIT_FIXED
62    C       |
63    C       |-- ECCO_COST_INIT_FIXED
64    C       |
65    C       |-- CTRL_INIT
66    C       |
67    C       |-- PTRACERS_INITIALISE
68    C       |
69    C       |-- GCHEM_INIT_FIXED
70    C       |
71    C       |-- DIC_INIT_FIXED
72    C       |
73    C       |-- THSICE_INIT_FIXED
74    C       |
75    C       |-- SHELFICE_INIT_FIXED
76    C       |
77    C       |-- CPL_INIT_FIXED
78    C       |
79    C       |-- DIAGNOSTICS_INIT_FIXED
80    
81    C     !USES:
82          IMPLICIT NONE
83  C     === Global variables ===  C     === Global variables ===
84  #include "SIZE.h"  #include "SIZE.h"
85  #include "EEPARAMS.h"  #include "EEPARAMS.h"
86  #include "PARAMS.h"  #include "PARAMS.h"
87    
88    C     !INPUT/OUTPUT PARAMETERS:
89  C     === Routine arguments ===  C     === Routine arguments ===
90  C     myThid -  Number of this instances  C     myThid -  Number of this instances
91        INTEGER myThid        INTEGER myThid
92    CEOP
93    
94    #ifdef ALLOW_RUNCLOCK
95          IF ( useRunClock ) THEN
96            CALL RUNCLOCK_INIT( myThid )
97          ENDIF
98    #endif
99    
100    #ifdef ALLOW_DIAGNOSTICS
101          IF ( useDiagnostics ) THEN
102            CALL DIAGNOSTICS_INIT_EARLY( myThid )
103            CALL DIAGNOSTICS_MAIN_INIT( myThid )
104          ENDIF
105    #endif
106    
107    #ifdef ALLOW_GENERIC_ADVDIFF
108    C--   Initialize fixed params for GAD
109          CALL GAD_INIT( myThid )
110    #endif
111    
112    #ifdef ALLOW_MOM_COMMON
113    C--   Initialize fixed params for Momentum pkgs (common, fluxform, vecinv)
114          IF ( momStepping ) THEN
115           CALL MOM_INIT_FIXED( myThid )
116          ENDIF
117    #endif
118    
119    #ifdef ALLOW_CD_CODE
120          IF (useCDscheme) THEN
121           CALL CD_CODE_INIT_FIXED(mythid)
122          ENDIF
123    #endif
124    
125    #ifdef ALLOW_EXF
126    C--   Initialize fixed arrays for EXF
127    c     IF ( useEXF ) THEN
128           CALL EXF_INIT_FIXED( myThid )
129    c     ENDIF
130    #endif
131    
132    #ifdef ALLOW_GMREDI
133    C--   Initialize fixed arrays for GM-Redi
134          IF ( useGMRedi ) THEN
135           CALL GMREDI_INIT_FIXED( myThid )
136          ENDIF
137    #endif
138    
139    #ifdef ALLOW_KPP
140    C--   Initialize fixed arrays for KPP
141          IF ( useKPP ) THEN
142           CALL KPP_INIT_FIXED( myThid )
143          ENDIF
144    #endif
145    
146    #ifdef ALLOW_OPPS
147          IF (useOPPS) CALL OPPS_INIT( myThid )
148    #endif /* ALLOW_OPPS */
149    
150  C--   Initialize fixed arrays for OBCS  C--   Initialize fixed arrays for OBCS
151  #ifdef ALLOW_OBCS  #ifdef ALLOW_OBCS
# Line 27  C--   Initialize fixed arrays for OBCS Line 154  C--   Initialize fixed arrays for OBCS
154        ENDIF        ENDIF
155  #endif  #endif
156    
157    #ifdef ALLOW_FLT
158    C--   Initialise Float positions
159          IF (useFLT) THEN
160           CALL FLT_INIT(nIter0,startTime,myThid )
161          _BARRIER
162          ENDIF
163    #endif
164    
165    #ifdef ALLOW_TIMEAVE
166    C     IF (useTIMEAVE) THEN
167          IF ( taveFreq.GT.0. ) THEN
168           CALL TIMEAVE_INIT_FIXED( myThid )
169          ENDIF
170    #endif
171    
172    #ifdef ALLOW_SHAP_FILT
173    C--   Shapiro filter initialisation
174          IF (useSHAP_FILT) THEN
175           CALL SHAP_FILT_INIT_FIXED( myThid )
176          ENDIF
177    #endif
178    
179    #ifdef ALLOW_ZONAL_FILT
180    C--   Latitude circle filter initialisation
181          IF (useZONAL_FILT) THEN
182           CALL ZONAL_FILT_INIT(myThid)
183          _BARRIER
184          ENDIF
185    #endif
186    
187    #ifdef ALLOW_AIM
188    C--   Initialise & Read AIM physical parameters
189          IF (useAIM) CALL AIM_INITIALISE( myThid )
190    #endif
191    
192    C AMM
193    #ifdef ALLOW_GRIDALT
194    C--   Initialise GRIDALT parameters - the alternative grid
195          IF (useGRIDALT) then
196           CALL TIMER_START('GRIDALT_INITIALISE  [PACKAGES_INIT_F]',mythid)
197           CALL GRIDALT_INITIALISE( myThid )
198           CALL TIMER_STOP ('GRIDALT_INITIALISE  [PACKAGES_INIT_F]',mythid)
199          ENDIF
200    
201    #endif
202    
203    #ifdef ALLOW_FIZHI
204    C--   Initialise & Read FIZHI physical parameters
205          IF (useFIZHI) CALL FIZHI_INIT_FIXED( myThid )
206    #endif
207    C AMM
208    
209    #ifdef ALLOW_LAND
210    C--   Initialise & Read Land package parameters
211          IF (useLand) CALL LAND_INITIALISE( myThid )
212    #endif
213    
214    #if (defined (ALLOW_SEAICE) && defined (ALLOW_COST))
215    C--   Initialise ecco-specific cost function.
216    C--   This needs to preceed the call ctrl_init
217    C--   in order to provide the weight files
218          CALL SEAICE_COST_INIT_FIXED( myThid )
219    #endif
220    
221    #if (defined (ALLOW_ECCO) && defined (ALLOW_COST))
222    C--   Initialise ecco-specific cost function.
223    C--   This needs to preceed the call ctrl_init
224    C--   in order to provide the weight files
225          CALL ECCO_COST_INIT_FIXED( myThid )
226    #endif
227    
228    #ifdef ALLOW_PROFILES
229          CALL PROFILES_INIT_FIXED( myThid )
230    #endif
231    
232    #ifdef ALLOW_AUTODIFF
233    C--   Initialise the control variables
234          CALL CTRL_INIT( myThid )
235          _BARRIER
236    #endif
237    
238    #ifdef ALLOW_PTRACERS
239          IF (usePTRACERS) CALL PTRACERS_INITIALISE(mythid)
240    #endif
241    
242    #ifdef ALLOW_GCHEM
243          IF (useGCHEM) CALL GCHEM_INIT_FIXED(mythid)
244    #endif
245    
246    #ifdef ALLOW_DIC
247    C     IF (useDIC)
248          CALL DIC_INIT_FIXED(mythid)
249    #endif
250    
251    #ifdef ALLOW_RBCS
252          IF (useRBCS) CALL RBCS_INIT_FIXED(mythid)
253    #endif
254    
255    
256    #ifdef ALLOW_THSICE
257          IF (useThSIce) CALL THSICE_INIT_FIXED(mythid)
258    #endif
259    
260    #ifdef ALLOW_SHELFICE
261          IF (useShelfIce) CALL SHELFICE_INIT_FIXED( myThid )
262    #endif /* ALLOW_SHELFICE */
263    
264    #ifdef COMPONENT_MODULE
265          IF ( useCoupler ) CALL CPL_INIT_FIXED( mythid )
266    #endif
267    
268    #ifdef ALLOW_DIAGNOSTICS
269          IF ( useDiagnostics ) THEN
270            CALL DIAGNOSTICS_INIT_FIXED( myThid )
271          ENDIF
272    #endif
273    
274    #ifdef ALLOW_EMBED_FILES
275          IF ( useEMBED_FILES ) THEN
276            CALL EMBED_FILES_INIT( mythid )
277          ENDIF
278    #endif
279    
280        RETURN        RETURN
281        END        END

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.22