1 |
C $Header: /u/gcmpack/MITgcm/model/src/packages_readparms.F,v 1.32 2004/09/01 16:25:06 stephd Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "PACKAGES_CONFIG.h" |
5 |
#include "CPP_OPTIONS.h" |
6 |
|
7 |
CStartOfInterface |
8 |
CBOP |
9 |
C !ROUTINE: PACKAGES_READPARMS |
10 |
C !INTERFACE: |
11 |
SUBROUTINE PACKAGES_READPARMS(myThid) |
12 |
|
13 |
C !DESCRIPTION: \bv |
14 |
C *==========================================================* |
15 |
C | SUBROUTINE PACKAGES_READPARMS |
16 |
C | o Read runtime package configuration parameters |
17 |
C *==========================================================* |
18 |
C | Packages can have internal runtime configuration |
19 |
C | parameters. A package provides a routine |
20 |
C | ${PKGNAME}_READ_PARMS to read these parameters. In |
21 |
C | general this routine should read parameters from a file |
22 |
C | called data.${pkgname}. |
23 |
C | This routine (S/R PACKAGES_READPARMS) calls per-package |
24 |
C | parameter reading routines. |
25 |
C *==========================================================* |
26 |
C \ev |
27 |
|
28 |
C !CALLING SEQUENCE: |
29 |
C PACKAGES_READPARMS |
30 |
C | |
31 |
C |-- GMREDI_READPARMS |
32 |
C | |
33 |
C |-- KPP_READPARMS |
34 |
C | |
35 |
C |-- PP81_READPARMS |
36 |
C | |
37 |
C |-- MY82_READPARMS |
38 |
C | |
39 |
C |-- SBO_READPARMS |
40 |
C | |
41 |
C |-- SEAICE_READPARMS |
42 |
C | |
43 |
C |-- SHAP_FILT_READPARMS |
44 |
C | |
45 |
C |-- ZONAL_FILT_READPARMS |
46 |
C | |
47 |
C |-- OBCS_READPARMS |
48 |
C | |
49 |
C |-- OFFLINE_READPARMS |
50 |
C | |
51 |
C |-- COST_READPARMS |
52 |
C | |
53 |
C |-- CTRL_INIT |
54 |
C | |
55 |
C |-- OPTIM_READPARMS |
56 |
C | |
57 |
C |-- GRDCHK_READPARMS |
58 |
C | |
59 |
C |-- ECCO_READPARMS |
60 |
C | |
61 |
C |-- CPL_READPARMS |
62 |
|
63 |
|
64 |
C !USES: |
65 |
IMPLICIT NONE |
66 |
C == Global variables == |
67 |
#include "SIZE.h" |
68 |
#include "EEPARAMS.h" |
69 |
#include "PARAMS.h" |
70 |
|
71 |
C == Routine arguments == |
72 |
INTEGER myThid |
73 |
CEOP |
74 |
|
75 |
#ifdef ALLOW_GMREDI |
76 |
C-- Initialize GM/Redi parameters |
77 |
IF (useGMRedi) CALL GMREDI_READPARMS( myThid ) |
78 |
#endif |
79 |
|
80 |
#ifdef ALLOW_KPP |
81 |
C-- Initialize KPP parameters |
82 |
IF (useKPP) CALL KPP_READPARMS( myThid ) |
83 |
#endif |
84 |
|
85 |
#ifdef ALLOW_PP81 |
86 |
C-- Initialize PP81 parameters |
87 |
IF (usePP81) CALL PP81_READPARMS( myThid ) |
88 |
#endif |
89 |
|
90 |
#ifdef ALLOW_MY82 |
91 |
C-- Initialize MY82 parameters |
92 |
IF (useMY82) CALL MY82_READPARMS( myThid ) |
93 |
#endif |
94 |
|
95 |
#ifdef ALLOW_SBO |
96 |
C-- Initialize SBO parameters |
97 |
IF (useSBO) CALL SBO_READPARMS( myThid ) |
98 |
#endif |
99 |
|
100 |
#ifdef ALLOW_SEAICE |
101 |
C-- Initialize SEAICE parameters |
102 |
IF (useSEAICE) CALL SEAICE_READPARMS( myThid ) |
103 |
#endif |
104 |
|
105 |
#ifdef ALLOW_SHAP_FILT |
106 |
IF (useSHAP_FILT) CALL SHAP_FILT_READPARMS( myThid ) |
107 |
#endif |
108 |
|
109 |
#ifdef ALLOW_ZONAL_FILT |
110 |
IF (useZONAL_FILT) CALL ZONAL_FILT_READPARMS( myThid ) |
111 |
#endif |
112 |
|
113 |
#ifdef ALLOW_OBCS |
114 |
IF (useOBCS) CALL OBCS_READPARMS( myThid ) |
115 |
#endif |
116 |
|
117 |
#ifdef ALLOW_OFFLINE |
118 |
call OFFLINE_READPARMS( myThid ) |
119 |
#endif |
120 |
|
121 |
#ifdef ALLOW_BULK_FORCE |
122 |
C -- initialize Bulkf parameters |
123 |
IF (useBulkForce) CALL BULKF_READPARMS( myThid ) |
124 |
#endif |
125 |
|
126 |
#ifdef ALLOW_THSICE |
127 |
C -- initialize Therm.Sea-Ice parameters |
128 |
IF (useThSIce) CALL THSICE_READPARMS( myThid ) |
129 |
#endif |
130 |
|
131 |
#ifdef ALLOW_PTRACERS |
132 |
IF (usePTRACERS) CALL PTRACERS_READPARMS( myThid ) |
133 |
#endif |
134 |
|
135 |
cswdptr -- add -- |
136 |
#ifdef ALLOW_GCHEM |
137 |
IF (usePTRACERS) CALL GCHEM_READPARMS( myThid ) |
138 |
#endif |
139 |
cswdptr -- end add --- |
140 |
|
141 |
#ifdef ALLOW_AUTODIFF |
142 |
C-- Initialise the optim. parameters. |
143 |
call optim_readparms( myThid ) |
144 |
C-- Initialise the control parameters |
145 |
call ctrl_readparms( myThid ) |
146 |
C-- Initialise the cost parameters |
147 |
call cost_readparms( mythid ) |
148 |
_BARRIER |
149 |
#endif |
150 |
|
151 |
#ifdef ALLOW_GRDCHK |
152 |
C-- Initialise gradient check parameters |
153 |
if (useGrdchk) call grdchk_readparms( myThid ) |
154 |
#endif |
155 |
|
156 |
#ifdef ALLOW_CAL |
157 |
C-- Initialise the calendar package. |
158 |
ceh3 should have an IF ( useCAL ) THEN |
159 |
call cal_readparms( myThid ) |
160 |
#endif |
161 |
|
162 |
C-- Custom routine to set forcing fields. |
163 |
#ifdef ALLOW_EXF |
164 |
ceh3 needs an IF ( useEXF ) THEN |
165 |
call exf_readparms ( mythid ) |
166 |
#endif |
167 |
|
168 |
#ifdef ALLOW_EBM |
169 |
IF (useEBM) call ebm_readparms( mythid ) |
170 |
#endif |
171 |
|
172 |
#ifdef ALLOW_ECCO |
173 |
c-- Initialize ECCO package parameters |
174 |
IF (useECCO) call ecco_readparms ( myThid ) |
175 |
#endif |
176 |
|
177 |
#ifdef COMPONENT_MODULE |
178 |
C-- set Coupling parameters |
179 |
IF ( useCoupler ) CALL CPL_READPARMS( myThid ) |
180 |
#endif /* COMPONENT_MODULE */ |
181 |
|
182 |
CAMM |
183 |
#ifdef ALLOW_DIAGNOSTICS |
184 |
C-- set diagnostics choices |
185 |
IF ( usediagnostics ) call diag_readparms(myThid ) |
186 |
#endif /* ALLOW_DIAGNOSTICS */ |
187 |
CAMM |
188 |
|
189 |
CAMM |
190 |
#ifdef ALLOW_FIZHI |
191 |
C-- set model date and time and other fizhi parameters |
192 |
IF ( usefizhi ) call fizhi_readparms(myThid ) |
193 |
#endif /* ALLOW_FIZHI */ |
194 |
CAMM |
195 |
|
196 |
RETURN |
197 |
END |