1 |
jmc |
1.28 |
C $Header: /u/gcmpack/MITgcm/model/src/packages_init_variables.F,v 1.27 2003/11/01 04:50:02 edhill Exp $ |
2 |
edhill |
1.24 |
C $Name: $ |
3 |
adcroft |
1.2 |
|
4 |
edhill |
1.24 |
#include "PACKAGES_CONFIG.h" |
5 |
adcroft |
1.2 |
#include "CPP_OPTIONS.h" |
6 |
|
|
|
7 |
cnh |
1.8 |
CBOP |
8 |
|
|
C !ROUTINE: PACKAGES_INIT_VARIABLES |
9 |
|
|
C !INTERFACE: |
10 |
adcroft |
1.2 |
SUBROUTINE PACKAGES_INIT_VARIABLES( myThid ) |
11 |
cnh |
1.8 |
|
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 |-- GMREDI_INIT |
23 |
|
|
C | |
24 |
|
|
C |-- KPP_INIT |
25 |
|
|
C |-- KPP_OPEN_DIAGS |
26 |
|
|
C | |
27 |
heimbach |
1.14 |
C |-- SEAICE_INIT |
28 |
dimitri |
1.18 |
C | |
29 |
|
|
C |-- OBCS_INIT_VARIABLES |
30 |
heimbach |
1.14 |
C | |
31 |
dimitri |
1.18 |
C |-- PTRACERS_INIT |
32 |
cnh |
1.8 |
C | |
33 |
jmc |
1.19 |
C |-- LAND_INI_VARS |
34 |
|
|
C | |
35 |
cnh |
1.8 |
C |-- CTRL_MAP_INI |
36 |
|
|
C | |
37 |
dimitri |
1.18 |
C |-- EXF_INIT |
38 |
|
|
C | |
39 |
|
|
C |-- INI_FORCING |
40 |
|
|
C | |
41 |
|
|
C |-- ECCO_INIT |
42 |
|
|
C | |
43 |
cnh |
1.8 |
C |-- COST_INIT |
44 |
|
|
C | |
45 |
dimitri |
1.18 |
C |-- BULKF_INIT |
46 |
cnh |
1.8 |
C | |
47 |
jmc |
1.28 |
C |-- THSICE_INI_VARS |
48 |
cnh |
1.8 |
|
49 |
|
|
C !USES: |
50 |
adcroft |
1.2 |
IMPLICIT NONE |
51 |
|
|
C === Global variables === |
52 |
|
|
#include "SIZE.h" |
53 |
|
|
#include "EEPARAMS.h" |
54 |
|
|
#include "PARAMS.h" |
55 |
|
|
|
56 |
cnh |
1.8 |
C !INPUT/OUTPUT PARAMETERS: |
57 |
adcroft |
1.2 |
C === Routine arguments === |
58 |
|
|
C myThid - Number of this instances |
59 |
|
|
INTEGER myThid |
60 |
cnh |
1.8 |
CEOP |
61 |
adcroft |
1.2 |
|
62 |
|
|
#ifdef ALLOW_GMREDI |
63 |
|
|
C-- Initialize GM/Redi parameterization |
64 |
|
|
IF (useGMRedi) CALL GMREDI_INIT( myThid ) |
65 |
|
|
#endif |
66 |
|
|
|
67 |
|
|
#ifdef ALLOW_KPP |
68 |
|
|
C-- Initialize KPP vertical mixing scheme. |
69 |
|
|
IF (useKPP) THEN |
70 |
|
|
CALL KPP_INIT( myThid ) |
71 |
|
|
CALL KPP_OPEN_DIAGS( myThid ) |
72 |
|
|
ENDIF |
73 |
heimbach |
1.14 |
#endif |
74 |
|
|
|
75 |
|
|
#ifdef ALLOW_SEAICE |
76 |
|
|
C-- Initialize SEAICE model. |
77 |
|
|
IF (useSEAICE) CALL SEAICE_INIT( myThid ) |
78 |
adcroft |
1.2 |
#endif |
79 |
|
|
|
80 |
heimbach |
1.20 |
cph-- moved further down |
81 |
|
|
cph#ifdef ALLOW_OBCS |
82 |
|
|
cphC-- Open boundaries data |
83 |
|
|
cph IF (useOBCS) THEN |
84 |
|
|
cph CALL OBCS_INIT_VARIABLES( myThid ) |
85 |
|
|
cph ENDIF |
86 |
|
|
cph#endif |
87 |
adcroft |
1.11 |
|
88 |
|
|
#ifdef ALLOW_PTRACERS |
89 |
heimbach |
1.22 |
# ifndef ALLOW_AUTODIFF_TAMC |
90 |
|
|
IF ( usePTRACERS ) THEN |
91 |
|
|
# endif |
92 |
|
|
CALL PTRACERS_INIT( mythid ) |
93 |
stephd |
1.23 |
#ifdef ALLOW_GCHEM |
94 |
|
|
CALL GCHEM_INIT_VARI( mythid ) |
95 |
|
|
#endif |
96 |
heimbach |
1.22 |
# ifndef ALLOW_AUTODIFF_TAMC |
97 |
|
|
ENDIF |
98 |
|
|
# endif |
99 |
jmc |
1.19 |
#endif |
100 |
|
|
|
101 |
|
|
#ifdef ALLOW_LAND |
102 |
|
|
IF ( useLAND ) CALL LAND_INI_VARS( mythid ) |
103 |
adcroft |
1.2 |
#endif |
104 |
|
|
|
105 |
heimbach |
1.26 |
#ifdef ALLOW_AUTODIFF |
106 |
heimbach |
1.20 |
c-- Initialise auxiliary xx_ fields |
107 |
|
|
CALL CTRL_INIT_VARIABLES ( mythid ) |
108 |
|
|
c-- Map the control variables onto the model state. |
109 |
|
|
CALL CTRL_MAP_INI( mythid ) |
110 |
heimbach |
1.5 |
_BARRIER |
111 |
dimitri |
1.18 |
#endif |
112 |
|
|
|
113 |
edhill |
1.27 |
#ifdef ALLOW_EXF |
114 |
dimitri |
1.18 |
CALL EXF_INIT( mythid ) |
115 |
|
|
#else |
116 |
|
|
CALL INI_FORCING( mythid ) |
117 |
heimbach |
1.5 |
#endif |
118 |
|
|
|
119 |
heimbach |
1.20 |
#ifdef ALLOW_COST |
120 |
heimbach |
1.12 |
c-- Initialise the cost function. |
121 |
edhill |
1.24 |
ceh3 needs an IF ( useCOST ) THEN |
122 |
heimbach |
1.20 |
CALL COST_INITVARIA( mythid ) |
123 |
heimbach |
1.12 |
_BARRIER |
124 |
heimbach |
1.20 |
#endif |
125 |
|
|
|
126 |
|
|
#ifdef ALLOW_OBCS |
127 |
|
|
C-- Open boundaries data |
128 |
|
|
IF (useOBCS) CALL OBCS_INIT_VARIABLES( myThid ) |
129 |
adcroft |
1.2 |
#endif |
130 |
|
|
|
131 |
cheisey |
1.17 |
#ifdef ALLOW_BULK_FORCE |
132 |
jmc |
1.28 |
IF (useBulkForce) CALL BULKF_INIT( mythid) |
133 |
cheisey |
1.16 |
#endif |
134 |
|
|
|
135 |
jmc |
1.28 |
#ifdef ALLOW_THSICE |
136 |
|
|
IF (useThSIce) CALL THSICE_INI_VARS( mythid) |
137 |
cheisey |
1.16 |
#endif |
138 |
|
|
|
139 |
|
|
|
140 |
adcroft |
1.2 |
RETURN |
141 |
|
|
END |