/[MITgcm]/MITgcm/pkg/ecco/ecco.h
ViewVC logotype

Contents of /MITgcm/pkg/ecco/ecco.h

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


Revision 1.17 - (show annotations) (download)
Thu Nov 12 13:22:14 2015 UTC (8 years, 7 months ago) by atn
Branch: MAIN
Changes since 1.16: +0 -8 lines
File MIME type: text/plain
cost_gencost_all.F

1 C $Header: /u/gcmpack/MITgcm/pkg/ecco/ecco.h,v 1.15 2015/11/11 21:43:45 atn Exp $
2 C $Name: $
3
4 c ==================================================================
5 c HEADER ECCO
6 c ==================================================================
7 c
8 c o Header for the ECCO project.
9 c
10 c started: Christian Eckert eckert@mit.edu 23-Feb-1999
11 c
12 c changed: Christian Eckert eckert@mit.edu
13 c
14 c
15 c ==================================================================
16 c HEADER ECCO
17 c ==================================================================
18
19 c Version of the release and versions of used packages:
20 c =====================================================
21 c
22 c eccoVersion - ecco release version.
23 c usesCalendarVersion - version of the calendar that has to
24 c be used.
25 c usesExternalForcingVersion - version of the external forcing that
26 c has to be used.
27 c usesAdjointSupportVersion - version of the adjoint support routines
28 c that have to be used.
29 c usesOptimizationVersion - version of the oof-line optimization
30 c that has to be used.
31
32 character*(5) eccoVersion
33 character*(5) eccoUsesCalVersion
34 character*(5) eccoUsesExfVersion
35 character*(5) eccoUsesAdsuppVersion
36 character*(5) eccoUsesOptimVersion
37
38 parameter( eccoVersion = '0.1.0' )
39 parameter( eccoUsesCalVersion = '0.1.4' )
40 parameter( eccoUsesExfVersion = '0.1.1' )
41 parameter( eccoUsesAdsuppVersion = '0.1.0' )
42 parameter( eccoUsesOptimVersion = '2.1.0' )
43
44
45 c Experiment name:
46 c ================
47
48 common /ecco_c/
49 & expId
50 character*(10) expId
51
52
53 c Integration information:
54 c ========================
55 c
56 c nyears - number of calendar years that are affected by the
57 c current integration.
58
59 common /ecco_i/
60 & nyears, nmonths, ndays, numsteps,
61 & eccoiter, ecco_prevcall
62 integer nyears
63 integer nmonths
64 integer ndays
65 integer numsteps
66 integer eccoiter
67 integer ecco_prevcall
68
69 c Averaging counters:
70 c ===================
71 c
72 c sum1day - counter for the daily averaging
73 c sum1mon - counter for the monthly averaging
74 c dayrec - number of averaged surface pressure records.
75 c monrec - number of averaged theta and salinity records.
76
77 common /average_i/
78 & sum1day,sum1mon,sum1year,
79 & dayrec,monrec,yearrec
80 integer sum1day
81 integer sum1mon
82 integer sum1year
83 integer dayrec
84 integer monrec
85 integer yearrec
86
87 c Flags used in the model-data comparison:
88 c ========================================
89 c
90 c using_ers - flag that indicates the use of ERS data
91
92 common /ecco_cost_data_flags/
93 & using_mdt,
94 & using_tpj,
95 & using_topex,
96 & using_ers,
97 & using_gfo,
98 & using_cost_altim,
99 & using_cost_bp,
100 & using_cost_sst,
101 & using_cost_scat,
102 & using_cost_seaice
103 & ,using_cost_transp
104 logical using_mdt
105 logical using_tpj
106 logical using_topex
107 logical using_ers
108 logical using_gfo
109 logical using_cost_altim
110 logical using_cost_bp
111 logical using_cost_sst
112 logical using_cost_scat
113 logical using_cost_seaice
114 logical using_cost_transp
115
116 c Record counters relevant for the cost function evaluation.
117 c ==========================================================
118 c
119 c nyearsrec - number of yearly records that will be generated by
120 c the current model integration.
121 c nmonsrec - number of monthly records that will be generated by
122 c the current model integration.
123 c ndaysrec - number of daily records that will be generated by
124 c the current model integration.
125
126 common /ecco_i/
127 & nyearsrec,
128 & nmonsrec,
129 & ndaysrec
130 integer nyearsrec
131 integer nmonsrec
132 integer ndaysrec
133
134 common /ecco_r/
135 & m_eta,m_UE,m_VN,
136 & msktrVolW,msktrVolS,
137 & trVol,
138 & trHeat,
139 & trSalt,
140 & VOLsumGlob_0, VOLsumGlob,
141 & RHOsumGlob_0, RHOsumGlob,
142 & frame, cosphi
143 _RL VOLsumGlob_0, VOLsumGlob, RHOsumGlob_0, RHOsumGlob
144 _RL frame (1-olx:snx+olx,1-oly:sny+oly )
145 _RL cosphi (1-olx:snx+olx,1-oly:sny+oly, nsx,nsy)
146 _RL m_eta(1-olx:snx+olx,1-oly:sny+oly, nsx,nsy)
147 _RL m_UE (1-olx:snx+olx,1-oly:sny+oly,nr,nsx,nsy)
148 _RL m_VN (1-olx:snx+olx,1-oly:sny+oly,nr,nsx,nsy)
149 _RL msktrVolW (1-OLx:sNx+OLx,1-OLy:sNy+OLy, nSx,nSy)
150 _RL msktrVolS (1-OLx:sNx+OLx,1-OLy:sNy+OLy, nSx,nSy)
151 _RL trVol(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
152 _RL trHeat(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
153 _RL trSalt(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
154
155 c file precision and field type
156 common /prec_type_cost/
157 & cost_iprec,
158 & cost_yftype
159
160 integer cost_iprec
161 character*(2) cost_yftype
162
163 c Number of User Cost terms:
164 c =============================
165 INTEGER NUSERCOST
166 PARAMETER ( NUSERCOST=10 )
167
168 c Number of Generic Cost terms:
169 c =============================
170 INTEGER NGENCOST
171 PARAMETER ( NGENCOST=20 )
172
173 INTEGER NGENCOST3D
174 #ifdef ALLOW_GENCOST3D
175 PARAMETER ( NGENCOST3D=4 )
176 #else
177 PARAMETER ( NGENCOST3D=0 )
178 #endif
179
180 INTEGER NGENPPROC
181 PARAMETER ( NGENPPROC=10 )
182
183
184 c empty pre/post-processing :
185 c =========================
186 common /ecco_nogencost_c/
187 & no_preproc,
188 & no_preproc_c,
189 & no_posproc,
190 & no_posproc_c,
191 & clim_preproc,
192 & anom_preproc
193 character*(MAX_LEN_FNAM) no_preproc(NGENPPROC)
194 character*(MAX_LEN_FNAM) no_preproc_c(NGENPPROC)
195 character*(MAX_LEN_FNAM) no_posproc(NGENPPROC)
196 character*(MAX_LEN_FNAM) no_posproc_c(NGENPPROC)
197 character*(MAX_LEN_FNAM) clim_preproc(NGENPPROC)
198 character*(MAX_LEN_FNAM) anom_preproc(NGENPPROC)
199
200 common /ecco_nogencost_r/
201 & no_preproc_r, no_posproc_r
202 _RL no_preproc_r(NGENPPROC)
203 _RL no_posproc_r(NGENPPROC)
204
205 common /ecco_nogencost_i/
206 & no_preproc_i, no_posproc_i, clim_preproc_i
207 integer no_preproc_i(NGENPPROC)
208 integer no_posproc_i(NGENPPROC)
209 integer clim_preproc_i(NGENPPROC)
210
211 c gencost common blocs:
212 c =====================
213
214 #ifdef ALLOW_GENCOST_CONTRIBUTION
215 c objf_gencost - gencost user defined contribution
216 common /ecco_gencost_ctrl/
217 & gencost_dummy
218 _RL gencost_dummy(NGENCOST)
219
220 common /ecco_gencost_r_1/
221 & objf_gencost, num_gencost, mult_gencost,
222 & gencost_barfld, gencost_modfld, gencost_weight,
223 #ifdef ALLOW_GENCOST3D
224 & gencost_bar3d, gencost_mod3d, gencost_wei3d,
225 #endif
226 & gencost_spmin, gencost_spmax, gencost_spzero,
227 & gencost_period, gencost_preproc_r, gencost_posproc_r
228
229 _RL objf_gencost(nsx,nsy,NGENCOST)
230 _RL num_gencost(nsx,nsy,NGENCOST)
231 _RL mult_gencost(NGENCOST)
232 _RL gencost_spmin(NGENCOST)
233 _RL gencost_spmax(NGENCOST)
234 _RL gencost_spzero(NGENCOST)
235 _RL gencost_period(NGENCOST)
236 _RL gencost_barfld(1-olx:snx+olx,1-oly:sny+oly,
237 & nsx,nsy,NGENCOST)
238 _RL gencost_modfld(1-olx:snx+olx,1-oly:sny+oly,
239 & nsx,nsy,NGENCOST)
240 _RL gencost_weight(1-olx:snx+olx,1-oly:sny+oly,
241 & nsx,nsy,NGENCOST)
242 #ifdef ALLOW_GENCOST3D
243 _RL gencost_bar3d(1-olx:snx+olx,1-oly:sny+oly,
244 & nr,nsx,nsy,NGENCOST3D)
245 _RL gencost_mod3d(1-olx:snx+olx,1-oly:sny+oly,
246 & nr,nsx,nsy,NGENCOST3D)
247 _RL gencost_wei3d(1-olx:snx+olx,1-oly:sny+oly,
248 & nr,nsx,nsy,NGENCOST3D)
249 #endif
250 _RL gencost_preproc_r(NGENPPROC,NGENCOST)
251 _RL gencost_posproc_r(NGENPPROC,NGENCOST)
252
253 common /ecco_gencost_i_1/
254 & gencost_nrec, gencost_nrecperiod,
255 & gencost_flag, gencost_outputlevel,
256 & gencost_startdate1, gencost_startdate2,
257 & gencost_enddate1, gencost_enddate2,
258 & gencost_startdate, gencost_enddate,
259 & gencost_pointer3d, gencost_smooth2Ddiffnbt,
260 & gencost_preproc_i, gencost_posproc_i
261
262 integer gencost_nrec(NGENCOST)
263 integer gencost_nrecperiod(NGENCOST)
264 integer gencost_flag(NGENCOST)
265 integer gencost_outputlevel(NGENCOST)
266 integer gencost_startdate1(NGENCOST)
267 integer gencost_startdate2(NGENCOST)
268 integer gencost_startdate(4,NGENCOST)
269 integer gencost_enddate1(NGENCOST)
270 integer gencost_enddate2(NGENCOST)
271 integer gencost_enddate(4,NGENCOST)
272 integer gencost_pointer3d(NGENCOST)
273 integer gencost_smooth2Ddiffnbt(NGENCOST)
274 integer gencost_preproc_i(NGENPPROC,NGENCOST)
275 integer gencost_posproc_i(NGENPPROC,NGENCOST)
276
277 common /ecco_gencost_l_1/
278 & gencost_timevaryweight, gencost_barskip,
279 & using_gencost, gencost_is3d
280 LOGICAL using_gencost(NGENCOST)
281 LOGICAL gencost_is3d(NGENCOST)
282 LOGICAL gencost_timevaryweight(NGENCOST)
283 LOGICAL gencost_barskip(NGENCOST)
284
285 common /ecco_gencost_c/
286 & gencost_name,
287 & gencost_scalefile,
288 & gencost_errfile,
289 & gencost_datafile,
290 & gencost_barfile,
291 & gencost_avgperiod,
292 & gencost_preproc,
293 & gencost_preproc_c,
294 & gencost_posproc,
295 & gencost_posproc_c,
296 & gencost_mask
297 character*(MAX_LEN_FNAM) gencost_name(NGENCOST)
298 character*(MAX_LEN_FNAM) gencost_scalefile(NGENCOST)
299 character*(MAX_LEN_FNAM) gencost_errfile(NGENCOST)
300 character*(MAX_LEN_FNAM) gencost_datafile(NGENCOST)
301 character*(MAX_LEN_FNAM) gencost_barfile(NGENCOST)
302 character*(5) gencost_avgperiod(NGENCOST)
303 character*(MAX_LEN_FNAM) gencost_preproc(NGENPPROC,NGENCOST)
304 character*(MAX_LEN_FNAM) gencost_posproc_c(NGENPPROC,NGENCOST)
305 character*(MAX_LEN_FNAM) gencost_posproc(NGENPPROC,NGENCOST)
306 character*(MAX_LEN_FNAM) gencost_preproc_c(NGENPPROC,NGENCOST)
307 character*(1) gencost_mask(NGENCOST)
308
309 #endif /* ALLOW_GENCOST_CONTRIBUTION */
310
311 c ==================================================================
312 c END OF HEADER ECCO
313 c ==================================================================
314
315

  ViewVC Help
Powered by ViewVC 1.1.22