/[MITgcm]/MITgcm_contrib/plumes/packages_init_variables.F
ViewVC logotype

Annotation of /MITgcm_contrib/plumes/packages_init_variables.F

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


Revision 1.1 - (hide annotations) (download)
Thu May 13 22:21:45 2004 UTC (21 years, 2 months ago) by molod
Branch: MAIN
CVS Tags: HEAD
More developing....

1 molod 1.1 C $Header: /u/u3/gcmpack/MITgcm/model/src/packages_init_variables.F,v 1.32 2004/03/01 19:13:58 heimbach Exp $
2     C $Name: $
3    
4     #include "PACKAGES_CONFIG.h"
5     #include "CPP_OPTIONS.h"
6    
7     CBOP
8     C !ROUTINE: PACKAGES_INIT_VARIABLES
9     C !INTERFACE:
10     SUBROUTINE PACKAGES_INIT_VARIABLES( myThid )
11    
12     C !DESCRIPTION: \bv
13     C *==========================================================*
14     C | SUBROUTINE PACKAGES_INIT_VARIABLES
15     C | o Does initialisation of package-related variable data
16     C *==========================================================*
17     C \ev
18    
19     C !CALLING SEQUENCE:
20     C PACKAGES_INIT_VARIABLES
21     C |
22     C |-- CD_CODE_INI_VARS
23     C |
24     C |-- GMREDI_INIT
25     C |
26     C |-- KPP_INIT
27     C |-- KPP_OPEN_DIAGS
28     C |
29     C |-- SEAICE_INIT
30     C |
31     C |-- OBCS_INIT_VARIABLES
32     C |
33     C |-- PTRACERS_INIT
34     C |
35     C |-- LAND_INI_VARS
36     C |
37     C |-- CTRL_MAP_INI
38     C |
39     C |-- EXF_INIT
40     C |
41     C |-- INI_FORCING
42     C |
43     C |-- ECCO_INIT
44     C |
45     C |-- COST_INIT
46     C |
47     C |-- BULKF_INIT
48     C |
49     C |-- THSICE_INI_VARS
50     C |
51     C |-- CPL_INI_VARS
52    
53     C !USES:
54     IMPLICIT NONE
55     C === Global variables ===
56     #include "SIZE.h"
57     #include "EEPARAMS.h"
58     #include "PARAMS.h"
59    
60     C !INPUT/OUTPUT PARAMETERS:
61     C === Routine arguments ===
62     C myThid - Number of this instances
63     INTEGER myThid
64     CEOP
65    
66     #ifdef ALLOW_CD_CODE
67     C-- Initialize CD_CODE variables:
68     C- note(jmc): before packaging CD_CODE, was done within ini_fields (=called before),
69     C therefore call CD-ini-vars before others pkg.
70     IF (useCDscheme) CALL CD_CODE_INI_VARS( myThid )
71     #endif
72    
73     #ifdef ALLOW_GMREDI
74     C-- Initialize GM/Redi parameterization
75     IF (useGMRedi) CALL GMREDI_INIT( myThid )
76     #endif
77    
78     #ifdef ALLOW_KPP
79     C-- Initialize KPP vertical mixing scheme.
80     IF (useKPP) THEN
81     CALL KPP_INIT( myThid )
82     CALL KPP_OPEN_DIAGS( myThid )
83     ENDIF
84     #endif
85    
86     #ifdef ALLOW_SEAICE
87     C-- Initialize SEAICE model.
88     IF (useSEAICE) CALL SEAICE_INIT( myThid )
89     #endif
90    
91     cph-- moved further down
92     cph#ifdef ALLOW_OBCS
93     cphC-- Open boundaries data
94     cph IF (useOBCS) THEN
95     cph CALL OBCS_INIT_VARIABLES( myThid )
96     cph ENDIF
97     cph#endif
98    
99     #ifdef ALLOW_PTRACERS
100     # ifndef ALLOW_AUTODIFF_TAMC
101     IF ( usePTRACERS ) THEN
102     # endif
103     CALL PTRACERS_INIT( mythid )
104     #ifdef ALLOW_GCHEM
105     CALL GCHEM_INIT_VARI( mythid )
106     #endif
107     # ifndef ALLOW_AUTODIFF_TAMC
108     ENDIF
109     # endif
110     #endif
111    
112     #ifdef ALLOW_LAND
113     IF ( useLAND ) CALL LAND_INI_VARS( mythid )
114     #endif
115    
116     #ifdef ALLOW_AUTODIFF
117     c-- Initialise auxiliary xx_ fields
118     CALL CTRL_INIT_VARIABLES ( mythid )
119     c-- Map the control variables onto the model state.
120     CALL CTRL_MAP_INI( mythid )
121     _BARRIER
122     #endif
123    
124     #ifdef ALLOW_EXF
125     CALL EXF_INIT( mythid )
126     cph#else
127     #endif
128     CALL INI_FORCING( mythid )
129     cph#endif
130    
131     #ifdef ALLOW_COST
132     c-- Initialise the cost function.
133     ceh3 needs an IF ( useCOST ) THEN
134     CALL COST_INITVARIA( mythid )
135     _BARRIER
136     #endif
137    
138     #ifdef ALLOW_OBCS
139     C-- Open boundaries data
140     IF (useOBCS) CALL OBCS_INIT_VARIABLES( myThid )
141     #endif
142    
143     #ifdef ALLOW_BULK_FORCE
144     IF (useBulkForce) CALL BULKF_INIT( mythid)
145     #endif
146    
147     #ifdef ALLOW_THSICE
148     IF (useThSIce) CALL THSICE_INI_VARS( mythid)
149     #endif
150    
151     #ifdef COMPONENT_MODULE
152     IF ( useCoupler ) CALL CPL_INI_VARS( mythid )
153     #endif
154    
155     C AMM
156     #ifdef ALLOW_FIZHI
157     C Initialize FIZHI state variables
158     IF (useFIZHI) CALL FIZHI_INIT_VARS( mythid)
159     #endif
160     C AMM
161     C AMM Stuff for plumes
162     call plumes_init_vars(mythid)
163     C AMM
164    
165     RETURN
166     END

  ViewVC Help
Powered by ViewVC 1.1.22