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

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

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

revision 1.3 by cnh, Sun Feb 4 14:38:48 2001 UTC revision 1.23 by stephd, Mon Oct 6 20:37:30 2003 UTC
# Line 1  Line 1 
 C $Header$  
 C $Name$  
1    
2  #include "CPP_OPTIONS.h"  #include "CPP_OPTIONS.h"
3    
4    CBOP
5    C     !ROUTINE: PACKAGES_INIT_VARIABLES
6    C     !INTERFACE:
7        SUBROUTINE PACKAGES_INIT_VARIABLES( myThid )        SUBROUTINE PACKAGES_INIT_VARIABLES( myThid )
 C     /==========================================================\  
 C     | SUBROUTINE PACKAGES_INIT_VARIABLES                       |  
 C     | o Does initialisation of package-related variable data   |  
 C     |==========================================================|  
 C     \==========================================================/  
       IMPLICIT NONE  
8    
9    C     !DESCRIPTION: \bv
10    C     *==========================================================*
11    C     | SUBROUTINE PACKAGES_INIT_VARIABLES                        
12    C     | o Does initialisation of package-related variable data    
13    C     *==========================================================*
14    C     \ev
15    
16    C     !CALLING SEQUENCE:
17    C     PACKAGES_INIT_VARIABLES
18    C       |
19    C       |-- GMREDI_INIT
20    C       |
21    C       |-- KPP_INIT
22    C       |-- KPP_OPEN_DIAGS
23    C       |
24    C       |-- SEAICE_INIT
25    C       |
26    C       |-- OBCS_INIT_VARIABLES
27    C       |
28    C       |-- PTRACERS_INIT
29    C       |
30    C       |-- LAND_INI_VARS
31    C       |
32    C       |-- CTRL_MAP_INI
33    C       |
34    C       |-- EXF_INIT
35    C       |
36    C       |-- INI_FORCING
37    C       |
38    C       |-- ECCO_INIT
39    C       |
40    C       |-- COST_INIT
41    C       |
42    C       |-- BULKF_INIT
43    C       |
44    C       |-- ICE_INIT
45    
46    C     !USES:
47          IMPLICIT NONE
48  C     === Global variables ===  C     === Global variables ===
49  #include "SIZE.h"  #include "SIZE.h"
50  #include "EEPARAMS.h"  #include "EEPARAMS.h"
51  #include "PARAMS.h"  #include "PARAMS.h"
52    
53    C     !INPUT/OUTPUT PARAMETERS:
54  C     === Routine arguments ===  C     === Routine arguments ===
55  C     myThid -  Number of this instances  C     myThid -  Number of this instances
56        INTEGER myThid        INTEGER myThid
57    CEOP
58    
59  #ifdef ALLOW_GMREDI  #ifdef ALLOW_GMREDI
60  C--   Initialize GM/Redi parameterization  C--   Initialize GM/Redi parameterization
# Line 33  C--   Initialize KPP vertical mixing sch Line 69  C--   Initialize KPP vertical mixing sch
69        ENDIF        ENDIF
70  #endif  #endif
71    
72  #ifdef ALLOW_OBCS  #ifdef ALLOW_SEAICE
73  C--   Open boundaries data  C--   Initialize SEAICE model.
74        IF (useOBCS) THEN        IF (useSEAICE) CALL SEAICE_INIT( myThid )
         CALL OBCS_INIT_VARIABLES( myThid )  
       ENDIF  
75  #endif  #endif
76    
77  #ifdef INCLUDE_ECCO_PACKAGE  cph-- moved further down
78        IF (useECCO) THEN  cph#ifdef ALLOW_OBCS
79         CALL ECCO_INIT( myThid )  cphC--   Open boundaries data
80    cph      IF (useOBCS) THEN
81    cph        CALL OBCS_INIT_VARIABLES( myThid )
82    cph      ENDIF
83    cph#endif
84    
85    #ifdef ALLOW_PTRACERS
86    # ifndef ALLOW_AUTODIFF_TAMC
87          IF ( usePTRACERS ) THEN
88    # endif
89             CALL PTRACERS_INIT( mythid )
90    #ifdef ALLOW_GCHEM
91             CALL GCHEM_INIT_VARI( mythid )
92    #endif
93    # ifndef ALLOW_AUTODIFF_TAMC
94        ENDIF        ENDIF
95    # endif
96    #endif
97    
98    #ifdef ALLOW_LAND
99          IF ( useLAND ) CALL LAND_INI_VARS( mythid )
100    #endif
101    
102    #if (defined (ALLOW_ADJOINT_RUN) || \
103         defined (ALLOW_TANGENTLINEAR_RUN) || \
104         defined (ALLOW_ECCO_OPTIMIZATION))
105    c--   Initialise auxiliary xx_ fields
106          CALL CTRL_INIT_VARIABLES ( mythid )
107    c--   Map the control variables onto the model state.
108          CALL CTRL_MAP_INI( mythid )
109          _BARRIER
110    #endif
111    
112    #ifdef INCLUDE_EXTERNAL_FORCING_PACKAGE
113          CALL EXF_INIT( mythid )
114  #else  #else
115        CALL INI_FORCING( myThid )        CALL INI_FORCING( mythid )
116    #endif
117    
118    #ifdef ALLOW_COST
119    c--   Initialise the cost function.
120          CALL COST_INITVARIA( mythid )
121          _BARRIER
122    #endif
123    
124    #ifdef ALLOW_OBCS
125    C--   Open boundaries data
126          IF (useOBCS) CALL OBCS_INIT_VARIABLES( myThid )
127    #endif
128    
129    cswdblk -- begin add ---
130    #ifdef ALLOW_BULK_FORCE
131          IF (useBulkForce) call BULKF_INIT( mythid)
132    #endif
133    cswdblk ---end add ---
134    
135    cswdice ---begin add ---
136    #ifdef ALLOW_THERM_SEAICE
137          IF (useThermSeaIce) call ICE_INIT( mythid)
138  #endif  #endif
139    cswdice ---end add ---
140    
141    
142        RETURN        RETURN

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.22