/[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.27 - (show annotations) (download)
Thu Sep 16 09:35:11 2004 UTC (19 years, 7 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint55, checkpoint54f_post, checkpoint55c_post, checkpoint55d_post, checkpoint55d_pre, checkpoint55b_post, checkpoint55a_post, checkpoint55e_post
Changes since 1.26: +7 -1 lines
o prepare addition of new packages GGL90 and OPPS
  - new parameters useGGL90 and useOPPS
  - include call to the new routines at the (hopefully) right places

1 C $Header: /u/gcmpack/MITgcm/model/src/packages_init_fixed.F,v 1.26 2004/09/10 12:19:30 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 |-- GAD_INIT
23 C |
24 C |-- OBCS_INIT_FIXED
25 C |
26 C |-- FLT_INIT
27 C |
28 C |-- ZONAL_FILT_INIT
29 C |
30 C |-- AIM_INITIALISE
31 C |
32 C |-- GRIDALT_INITIALISE
33 C |
34 C |-- FIZHI_INIT_FIXED
35 C |
36 C |-- LAND_INITIALISE
37 C |
38 C |-- ECCO_COST_INIT_FIXED
39 C |
40 C |-- CTRL_INIT
41 C |
42 C |-- GCHEM_INIT_FIXED
43 C |
44 C |-- OPPS_INIT
45 C |
46 C |-- DIAGNOSTICS_INITIALISE
47
48 C !USES:
49 IMPLICIT NONE
50 C === Global variables ===
51 #include "SIZE.h"
52 #include "EEPARAMS.h"
53 #include "PARAMS.h"
54
55 C !INPUT/OUTPUT PARAMETERS:
56 C === Routine arguments ===
57 C myThid - Number of this instances
58 INTEGER myThid
59 CEOP
60
61 C-- Initialize fixed params for GAD
62 CALL GAD_INIT( myThid )
63
64 C-- Initialize fixed arrays for OBCS
65 #ifdef ALLOW_OBCS
66 IF (useOBCS) THEN
67 CALL OBCS_INIT_FIXED( myThid )
68 ENDIF
69 #endif
70
71 #ifdef ALLOW_FLT
72 C-- Initialise Float positions
73 IF (useFLT) THEN
74 CALL FLT_INIT(nIter0,startTime,myThid )
75 _BARRIER
76 ENDIF
77 #endif
78
79 #ifdef ALLOW_TIMEAVE
80 C IF (useTIMEAVE) THEN
81 CALL timeave_init( myThid )
82 C ENDIF
83 #endif
84
85 #ifdef ALLOW_ZONAL_FILT
86 C-- Latitude circle filter initialisation
87 IF (useZONAL_FILT) THEN
88 CALL ZONAL_FILT_INIT(myThid)
89 _BARRIER
90 ENDIF
91 #endif
92
93 #ifdef ALLOW_AIM
94 C-- Initialise & Read AIM physical parameters
95 IF (useAIM) CALL AIM_INITIALISE( myThid )
96 #endif
97
98 C AMM
99 #ifdef ALLOW_GRIDALT
100 C-- Initialise GRIDALT parameters - the alternative grid
101 IF (useGRIDALT) then
102 CALL TIMER_START('GRIDALT_INITIALISE [PACKAGES_INIT_F]',mythid)
103 CALL GRIDALT_INITIALISE( myThid )
104 CALL TIMER_STOP ('GRIDALT_INITIALISE [PACKAGES_INIT_F]',mythid)
105 ENDIF
106
107 #endif
108
109 #ifdef ALLOW_FIZHI
110 C-- Initialise & Read FIZHI physical parameters
111 IF (useFIZHI) CALL FIZHI_INIT_FIXED( myThid )
112 #endif
113 C AMM
114
115 #ifdef ALLOW_LAND
116 C-- Initialise & Read Land package parameters
117 IF (useLand) CALL LAND_INITIALISE( myThid )
118 #endif
119
120 #if (defined (ALLOW_ECCO) && defined (ALLOW_COST))
121 C-- Initialise ecco-specific cost function.
122 C-- This needs to preceed the call ctrl_init
123 C-- in order to provide the weight files
124 IF (useECCO) CALL ECCO_COST_INIT_FIXED( myThid )
125 #endif
126
127 #ifdef ALLOW_AUTODIFF
128 C-- Initialise the control variables
129 CALL CTRL_INIT( myThid )
130 _BARRIER
131 #endif
132
133 #ifdef ALLOW_PTRACERS
134 IF (usePTRACERS) CALL PTRACERS_INITIALISE(mythid)
135 #endif
136
137 #ifdef ALLOW_PTRACERS
138 #ifdef ALLOW_GCHEM
139 IF (usePTRACERS) then
140 call GCHEM_INIT_FIXED(mythid)
141 ENDIF
142 #endif
143 #endif
144
145 #ifdef ALLOW_OPPS
146 IF (useOPPS) CALL OPPS_INIT( myThid )
147 #endif /* ALLOW_OPPS */
148
149 CAMM
150 #ifdef ALLOW_DIAGNOSTICS
151 IF (usediagnostics) then
152 call diagnostics_initialise(mythid)
153 ENDIF
154 #endif
155 CAMM
156
157 RETURN
158 END

  ViewVC Help
Powered by ViewVC 1.1.22