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

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

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


Revision 1.12 - (hide annotations) (download)
Thu May 30 22:49:56 2002 UTC (22 years, 1 month ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint46g_pre, checkpoint46f_post, checkpoint46b_post, checkpoint46d_pre, checkpoint45d_post, checkpoint46j_pre, checkpoint46a_post, checkpoint46j_post, checkpoint46e_pre, checkpoint46b_pre, checkpoint46c_pre, checkpoint46, checkpoint46h_pre, checkpoint46a_pre, checkpoint45c_post, checkpoint46g_post, checkpoint46i_post, checkpoint46c_post, checkpoint46e_post, checkpoint46h_post, checkpoint46d_post
Changes since 1.11: +6 -5 lines
Modified initialisations to enable exf package for MITgcm
(without invoking ECCO_PACKAGE).

1 adcroft 1.2
2     #include "CPP_OPTIONS.h"
3    
4 cnh 1.8 CBOP
5     C !ROUTINE: PACKAGES_INIT_VARIABLES
6     C !INTERFACE:
7 adcroft 1.2 SUBROUTINE PACKAGES_INIT_VARIABLES( myThid )
8 cnh 1.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 |-- OBCS_INIT_VARIABLES
25     C |
26     C |-- AIM_INIT
27     C |
28     C |-- CTRL_MAP_INI
29     C |
30     C |-- COST_INIT
31     C |
32     C |-- ECCO_INIT
33     C |
34     C |-- INI_FORCING
35    
36     C !USES:
37 adcroft 1.2 IMPLICIT NONE
38     C === Global variables ===
39     #include "SIZE.h"
40     #include "EEPARAMS.h"
41     #include "PARAMS.h"
42    
43 cnh 1.8 C !INPUT/OUTPUT PARAMETERS:
44 adcroft 1.2 C === Routine arguments ===
45     C myThid - Number of this instances
46     INTEGER myThid
47 cnh 1.8 CEOP
48 adcroft 1.2
49     #ifdef ALLOW_GMREDI
50     C-- Initialize GM/Redi parameterization
51     IF (useGMRedi) CALL GMREDI_INIT( myThid )
52     #endif
53    
54     #ifdef ALLOW_KPP
55     C-- Initialize KPP vertical mixing scheme.
56     IF (useKPP) THEN
57     CALL KPP_INIT( myThid )
58     CALL KPP_OPEN_DIAGS( myThid )
59     ENDIF
60     #endif
61    
62     #ifdef ALLOW_OBCS
63     C-- Open boundaries data
64     IF (useOBCS) THEN
65     CALL OBCS_INIT_VARIABLES( myThid )
66     ENDIF
67 jmc 1.4 #endif
68    
69     #ifdef ALLOW_AIM
70     IF ( useAIM ) CALL AIM_INIT( mythid )
71 adcroft 1.11 #endif
72    
73     #ifdef ALLOW_PTRACERS
74     IF ( usePTRACERS ) CALL PTRACERS_INIT( mythid )
75 adcroft 1.2 #endif
76    
77 heimbach 1.10 #if (defined (ALLOW_ADJOINT_RUN) || defined (ALLOW_TANGENTLINEAR_RUN))
78 heimbach 1.5 c-- Map the control variables onto the model state.
79     call ctrl_map_ini( mythid )
80     _BARRIER
81     #endif
82    
83 heimbach 1.9 #ifdef INCLUDE_EXTERNAL_FORCING_PACKAGE
84     CALL EXF_INIT( mythid )
85     #else
86     CALL INI_FORCING( mythid )
87     #endif
88    
89 adcroft 1.2 #ifdef INCLUDE_ECCO_PACKAGE
90     IF (useECCO) THEN
91     CALL ECCO_INIT( myThid )
92     ENDIF
93 heimbach 1.12 #else
94     # ifdef ALLOW_COST
95     c-- Initialise the cost function.
96     call cost_init( mythid )
97     _BARRIER
98     # endif
99 adcroft 1.2 #endif
100    
101     RETURN
102     END

  ViewVC Help
Powered by ViewVC 1.1.22