1 |
gforget |
1.12 |
C $Header: /u/gcmpack/MITgcm/pkg/ecco/ecco_cost_summary.F,v 1.11 2014/10/16 20:02:34 gforget Exp $ |
2 |
jmc |
1.3 |
C $Name: $ |
3 |
heimbach |
1.1 |
|
4 |
jmc |
1.5 |
#include "ECCO_OPTIONS.h" |
5 |
heimbach |
1.1 |
|
6 |
|
|
|
7 |
|
|
subroutine ecco_cost_summary( mythid ) |
8 |
|
|
|
9 |
|
|
c ================================================================== |
10 |
|
|
c SUBROUTINE ecco_cost_summary |
11 |
|
|
c ================================================================== |
12 |
|
|
c |
13 |
|
|
c o Summarize the cost function related parts of the ECCO release. |
14 |
|
|
c |
15 |
|
|
c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
16 |
|
|
c |
17 |
|
|
c changed: Christian Eckert eckert@mit.edu 25-Feb-2000 |
18 |
|
|
c |
19 |
|
|
c - Restructured the code in order to create a package |
20 |
|
|
c for the MITgcmUV. |
21 |
|
|
c |
22 |
|
|
c ================================================================== |
23 |
|
|
c SUBROUTINE ecco_cost_summary |
24 |
|
|
c ================================================================== |
25 |
|
|
|
26 |
|
|
implicit none |
27 |
|
|
|
28 |
|
|
c == global variables == |
29 |
|
|
|
30 |
gforget |
1.12 |
#if (defined (ALLOW_ECCO) && defined (ECCO_CTRL_DEPRECATED)) |
31 |
heimbach |
1.1 |
#include "EEPARAMS.h" |
32 |
|
|
#include "SIZE.h" |
33 |
gforget |
1.12 |
#include "ecco_cost.h" |
34 |
|
|
#ifdef ALLOW_CTRL |
35 |
|
|
# include "CTRL_OBCS.h" |
36 |
gforget |
1.11 |
#endif |
37 |
|
|
#endif |
38 |
heimbach |
1.1 |
|
39 |
|
|
c == routine arguments == |
40 |
|
|
|
41 |
jmc |
1.3 |
integer mythid |
42 |
heimbach |
1.1 |
|
43 |
gforget |
1.12 |
#if (defined (ALLOW_ECCO) && defined (ECCO_CTRL_DEPRECATED)) |
44 |
heimbach |
1.1 |
c == local variables == |
45 |
|
|
|
46 |
|
|
integer il |
47 |
|
|
|
48 |
|
|
character*(max_len_mbuf) msgbuf |
49 |
|
|
|
50 |
|
|
c == external == |
51 |
|
|
|
52 |
|
|
integer ilnblnk |
53 |
|
|
external ilnblnk |
54 |
|
|
|
55 |
|
|
c == end of interface == |
56 |
|
|
|
57 |
|
|
write(msgbuf,'(a)') |
58 |
|
|
&' ' |
59 |
|
|
call print_message( msgbuf, standardmessageunit, |
60 |
|
|
& SQUEEZE_RIGHT , mythid) |
61 |
|
|
write(msgbuf,'(a)') |
62 |
|
|
&'// =======================================================' |
63 |
|
|
call print_message( msgbuf, standardmessageunit, |
64 |
|
|
& SQUEEZE_RIGHT , mythid) |
65 |
|
|
write(msgbuf,'(a)') |
66 |
|
|
&'// ECCO cost function configuration >>> START <<<' |
67 |
|
|
call print_message( msgbuf, standardmessageunit, |
68 |
|
|
& SQUEEZE_RIGHT , mythid) |
69 |
|
|
write(msgbuf,'(a)') |
70 |
|
|
&'// =======================================================' |
71 |
|
|
call print_message( msgbuf, standardmessageunit, |
72 |
|
|
& SQUEEZE_RIGHT , mythid) |
73 |
|
|
write(msgbuf,'(a)') |
74 |
|
|
&' ' |
75 |
|
|
call print_message( msgbuf, standardmessageunit, |
76 |
|
|
& SQUEEZE_RIGHT , mythid) |
77 |
|
|
|
78 |
|
|
write(msgbuf,'(a)') |
79 |
|
|
&' Multipliers for the indivdual cost function contributions:' |
80 |
|
|
call print_message( msgbuf, standardmessageunit, |
81 |
|
|
& SQUEEZE_RIGHT , mythid) |
82 |
|
|
write(msgbuf,'(a)') |
83 |
|
|
&' ' |
84 |
|
|
call print_message( msgbuf, standardmessageunit, |
85 |
|
|
& SQUEEZE_RIGHT , mythid) |
86 |
|
|
write(msgbuf,'(a,e10.3)') |
87 |
|
|
&' Net heat flux: ',mult_hflux |
88 |
|
|
call print_message( msgbuf, standardmessageunit, |
89 |
|
|
& SQUEEZE_RIGHT , mythid) |
90 |
|
|
write(msgbuf,'(a,e10.3)') |
91 |
|
|
&' Salt flux: ',mult_sflux |
92 |
|
|
call print_message( msgbuf, standardmessageunit, |
93 |
|
|
& SQUEEZE_RIGHT , mythid) |
94 |
|
|
write(msgbuf,'(a,e10.3)') |
95 |
|
|
&' Zonal wind stress: ',mult_tauu |
96 |
|
|
call print_message( msgbuf, standardmessageunit, |
97 |
|
|
& SQUEEZE_RIGHT , mythid) |
98 |
|
|
write(msgbuf,'(a,e10.3)') |
99 |
|
|
&' Meridional wind stress: ',mult_tauv |
100 |
|
|
call print_message( msgbuf, standardmessageunit, |
101 |
|
|
& SQUEEZE_RIGHT , mythid) |
102 |
|
|
write(msgbuf,'(a,e10.3)') |
103 |
|
|
&' Mean sea surface height: ',mult_hmean |
104 |
|
|
call print_message( msgbuf, standardmessageunit, |
105 |
|
|
& SQUEEZE_RIGHT , mythid) |
106 |
|
|
write(msgbuf,'(a,e10.3)') |
107 |
|
|
&' Sea surface height anomalies: ',mult_h |
108 |
|
|
call print_message( msgbuf, standardmessageunit, |
109 |
|
|
& SQUEEZE_RIGHT , mythid) |
110 |
|
|
write(msgbuf,'(a,e10.3)') |
111 |
|
|
&' Temperature Lev.: ',mult_temp |
112 |
|
|
call print_message( msgbuf, standardmessageunit, |
113 |
|
|
& SQUEEZE_RIGHT , mythid) |
114 |
|
|
write(msgbuf,'(a,e10.3)') |
115 |
|
|
&' Salinity Lev.: ',mult_salt |
116 |
|
|
call print_message( msgbuf, standardmessageunit, |
117 |
|
|
& SQUEEZE_RIGHT , mythid) |
118 |
|
|
write(msgbuf,'(a,e10.3)') |
119 |
|
|
&' Temperature ini.: ',mult_temp0 |
120 |
|
|
call print_message( msgbuf, standardmessageunit, |
121 |
|
|
& SQUEEZE_RIGHT , mythid) |
122 |
|
|
write(msgbuf,'(a,e10.3)') |
123 |
|
|
&' Salinity ini.: ',mult_salt0 |
124 |
|
|
call print_message( msgbuf, standardmessageunit, |
125 |
|
|
& SQUEEZE_RIGHT , mythid) |
126 |
|
|
write(msgbuf,'(a,e10.3)') |
127 |
heimbach |
1.4 |
&' Sea level ini.: ',mult_etan0 |
128 |
|
|
call print_message( msgbuf, standardmessageunit, |
129 |
|
|
& SQUEEZE_RIGHT , mythid) |
130 |
|
|
write(msgbuf,'(a,e10.3)') |
131 |
|
|
&' zonal velocity ini.: ',mult_uvel0 |
132 |
|
|
call print_message( msgbuf, standardmessageunit, |
133 |
|
|
& SQUEEZE_RIGHT , mythid) |
134 |
|
|
write(msgbuf,'(a,e10.3)') |
135 |
|
|
&' merid velocity ini.: ',mult_vvel0 |
136 |
|
|
call print_message( msgbuf, standardmessageunit, |
137 |
|
|
& SQUEEZE_RIGHT , mythid) |
138 |
|
|
write(msgbuf,'(a,e10.3)') |
139 |
heimbach |
1.1 |
&' TMI Sea surface temperature: ',mult_tmi |
140 |
|
|
call print_message( msgbuf, standardmessageunit, |
141 |
|
|
& SQUEEZE_RIGHT , mythid) |
142 |
|
|
write(msgbuf,'(a,e10.3)') |
143 |
|
|
&' Sea surface temperature: ',mult_sst |
144 |
|
|
call print_message( msgbuf, standardmessageunit, |
145 |
|
|
& SQUEEZE_RIGHT , mythid) |
146 |
|
|
write(msgbuf,'(a,e10.3)') |
147 |
|
|
&' Sea surface salinity: ',mult_sss |
148 |
|
|
call print_message( msgbuf, standardmessageunit, |
149 |
|
|
& SQUEEZE_RIGHT , mythid) |
150 |
|
|
write(msgbuf,'(a,e10.3)') |
151 |
|
|
&' CTD temperature: ',mult_ctdt |
152 |
|
|
call print_message( msgbuf, standardmessageunit, |
153 |
|
|
& SQUEEZE_RIGHT , mythid) |
154 |
|
|
write(msgbuf,'(a,e10.3)') |
155 |
|
|
&' CTD salinity: ',mult_ctds |
156 |
|
|
call print_message( msgbuf, standardmessageunit, |
157 |
|
|
& SQUEEZE_RIGHT , mythid) |
158 |
|
|
write(msgbuf,'(a,e10.3)') |
159 |
|
|
&' CTD clim temperature: ',mult_ctdtclim |
160 |
|
|
call print_message( msgbuf, standardmessageunit, |
161 |
|
|
& SQUEEZE_RIGHT , mythid) |
162 |
|
|
write(msgbuf,'(a,e10.3)') |
163 |
|
|
&' CTD clim salinity: ',mult_ctdsclim |
164 |
|
|
call print_message( msgbuf, standardmessageunit, |
165 |
|
|
& SQUEEZE_RIGHT , mythid) |
166 |
|
|
write(msgbuf,'(a,e10.3)') |
167 |
|
|
&' XBT Temperature: ',mult_xbt |
168 |
|
|
call print_message( msgbuf, standardmessageunit, |
169 |
|
|
& SQUEEZE_RIGHT , mythid) |
170 |
|
|
write(msgbuf,'(a,e10.3)') |
171 |
|
|
&' ARGO Temperature: ',mult_argot |
172 |
|
|
call print_message( msgbuf, standardmessageunit, |
173 |
|
|
& SQUEEZE_RIGHT , mythid) |
174 |
|
|
write(msgbuf,'(a,e10.3)') |
175 |
|
|
&' ARGO Salt: ',mult_argos |
176 |
|
|
call print_message( msgbuf, standardmessageunit, |
177 |
|
|
& SQUEEZE_RIGHT , mythid) |
178 |
|
|
write(msgbuf,'(a,e10.3)') |
179 |
|
|
&' drifter velocities: ',mult_drift |
180 |
|
|
call print_message( msgbuf, standardmessageunit, |
181 |
|
|
& SQUEEZE_RIGHT , mythid) |
182 |
|
|
write(msgbuf,'(a,e10.3)') |
183 |
|
|
&' drift between last and 1st year:',mult_tdrift |
184 |
|
|
call print_message( msgbuf, standardmessageunit, |
185 |
|
|
& SQUEEZE_RIGHT , mythid) |
186 |
|
|
write(msgbuf,'(a,e10.3)') |
187 |
|
|
&' drift between last and 1st year:',mult_sdrift |
188 |
|
|
call print_message( msgbuf, standardmessageunit, |
189 |
|
|
& SQUEEZE_RIGHT , mythid) |
190 |
|
|
write(msgbuf,'(a,e10.3)') |
191 |
|
|
&' Ageostrophic bdy flow: ',mult_ageos |
192 |
|
|
call print_message( msgbuf, standardmessageunit, |
193 |
|
|
& SQUEEZE_RIGHT , mythid) |
194 |
gforget |
1.11 |
#ifdef ALLOW_CTRL |
195 |
heimbach |
1.1 |
write(msgbuf,'(a,e10.3)') |
196 |
|
|
&' OB North: ',mult_obcsn |
197 |
|
|
call print_message( msgbuf, standardmessageunit, |
198 |
|
|
& SQUEEZE_RIGHT , mythid) |
199 |
|
|
write(msgbuf,'(a,e10.3)') |
200 |
|
|
&' OB South: ',mult_obcss |
201 |
|
|
call print_message( msgbuf, standardmessageunit, |
202 |
|
|
& SQUEEZE_RIGHT , mythid) |
203 |
|
|
write(msgbuf,'(a,e10.3)') |
204 |
|
|
&' OB West: ',mult_obcsw |
205 |
|
|
call print_message( msgbuf, standardmessageunit, |
206 |
|
|
& SQUEEZE_RIGHT , mythid) |
207 |
|
|
write(msgbuf,'(a,e10.3)') |
208 |
|
|
&' OB East: ',mult_obcse |
209 |
|
|
call print_message( msgbuf, standardmessageunit, |
210 |
|
|
& SQUEEZE_RIGHT , mythid) |
211 |
gforget |
1.11 |
#endif |
212 |
heimbach |
1.1 |
write(msgbuf,'(a)') |
213 |
|
|
&' ' |
214 |
|
|
call print_message( msgbuf, standardmessageunit, |
215 |
jmc |
1.3 |
& SQUEEZE_RIGHT , mythid) |
216 |
heimbach |
1.1 |
write(msgbuf,'(a)') |
217 |
|
|
&' ' |
218 |
|
|
call print_message( msgbuf, standardmessageunit, |
219 |
|
|
& SQUEEZE_RIGHT , mythid) |
220 |
|
|
|
221 |
|
|
il = ilnblnk(tdatfile) |
222 |
|
|
write(msgbuf,'(a,a)') |
223 |
|
|
&' Temperature data are read from: ',tdatfile(1:il) |
224 |
|
|
call print_message( msgbuf, standardmessageunit, |
225 |
|
|
& SQUEEZE_RIGHT , mythid) |
226 |
|
|
il = ilnblnk(sdatfile) |
227 |
|
|
write(msgbuf,'(a,a)') |
228 |
|
|
&' Salinity data are read from: ',sdatfile(1:il) |
229 |
|
|
call print_message( msgbuf, standardmessageunit, |
230 |
|
|
& SQUEEZE_RIGHT , mythid) |
231 |
|
|
|
232 |
|
|
#ifdef ALLOW_SSH_MEAN_COST_CONTRIBUTION |
233 |
jmc |
1.8 |
write(msgbuf,'(A,L5)') |
234 |
atn |
1.7 |
& ' using_cost_altim[T=mdt,F=no]: ',using_cost_altim |
235 |
|
|
call print_message( msgbuf, standardmessageunit, |
236 |
|
|
& SQUEEZE_RIGHT , mythid) |
237 |
gforget |
1.6 |
if (using_cost_altim) then |
238 |
atn |
1.7 |
il = ilnblnk(mdtdatfile) |
239 |
heimbach |
1.1 |
write(msgbuf,'(a,a)') |
240 |
atn |
1.7 |
& ' MDT is read from: ',mdtdatfile(1:il) |
241 |
|
|
call print_message( msgbuf, standardmessageunit, |
242 |
|
|
& SQUEEZE_RIGHT , mythid) |
243 |
|
|
write(msgbuf,'(a,i10,i8)') |
244 |
|
|
& ' MDT startdate are: ', |
245 |
|
|
& mdtstartdate(1), |
246 |
|
|
& mdtstartdate(2) |
247 |
|
|
call print_message( msgbuf, standardmessageunit, |
248 |
|
|
& SQUEEZE_RIGHT , mythid) |
249 |
|
|
write(msgbuf,'(a,i10,i8)') |
250 |
|
|
& ' MDT enddate are: ', |
251 |
|
|
& mdtenddate(1), |
252 |
|
|
& mdtenddate(2) |
253 |
heimbach |
1.1 |
call print_message( msgbuf, standardmessageunit, |
254 |
|
|
& SQUEEZE_RIGHT , mythid) |
255 |
|
|
endif |
256 |
|
|
#endif /* ALLOW_SSH_MEAN_COST_CONTRIBUTION */ |
257 |
|
|
|
258 |
|
|
#ifdef ALLOW_SSH_TPANOM_COST_CONTRIBUTION |
259 |
gforget |
1.9 |
if (using_tpj) then |
260 |
heimbach |
1.1 |
il = ilnblnk(topexfile) |
261 |
|
|
write(msgbuf,'(a,a)') |
262 |
|
|
& ' T/P data are read from: ',topexfile(1:il) |
263 |
|
|
call print_message( msgbuf, standardmessageunit, |
264 |
|
|
& SQUEEZE_RIGHT , mythid) |
265 |
|
|
write(msgbuf,'(a,i10,i8)') |
266 |
|
|
& ' T/P start date is: ', |
267 |
|
|
& topexstartdate(1), |
268 |
|
|
& topexstartdate(2) |
269 |
|
|
call print_message( msgbuf, standardmessageunit, |
270 |
|
|
& SQUEEZE_RIGHT , mythid) |
271 |
|
|
write(msgbuf,'(a,e18.11)') |
272 |
|
|
& ' T/P sampling period is: ', |
273 |
|
|
& topexperiod |
274 |
|
|
call print_message( msgbuf, standardmessageunit, |
275 |
|
|
& SQUEEZE_RIGHT , mythid) |
276 |
|
|
endif |
277 |
|
|
#endif /* ALLOW_SSH_TPANOM_COST_CONTRIBUTION */ |
278 |
|
|
|
279 |
|
|
#ifdef ALLOW_SSH_ERSANOM_COST_CONTRIBUTION |
280 |
|
|
if (using_ers) then |
281 |
|
|
il = ilnblnk(ersfile) |
282 |
|
|
write(msgbuf,'(a,a)') |
283 |
|
|
& ' ERS data are read from: ',ersfile(1:il) |
284 |
|
|
call print_message( msgbuf, standardmessageunit, |
285 |
|
|
& SQUEEZE_RIGHT , mythid) |
286 |
|
|
write(msgbuf,'(a,i10,i8)') |
287 |
|
|
& ' ERS start date is: ', |
288 |
|
|
& ersstartdate(1), |
289 |
|
|
& ersstartdate(2) |
290 |
|
|
call print_message( msgbuf, standardmessageunit, |
291 |
|
|
& SQUEEZE_RIGHT , mythid) |
292 |
|
|
write(msgbuf,'(a,e18.11)') |
293 |
|
|
& ' ERS sampling period is: ', |
294 |
|
|
& ersperiod |
295 |
|
|
call print_message( msgbuf, standardmessageunit, |
296 |
|
|
& SQUEEZE_RIGHT , mythid) |
297 |
|
|
endif |
298 |
|
|
#endif /* ALLOW_SSH_ERSANOM_COST_CONTRIBUTION */ |
299 |
|
|
|
300 |
heimbach |
1.2 |
#ifdef ALLOW_SSH_GFOANOM_COST_CONTRIBUTION |
301 |
|
|
if (using_gfo) then |
302 |
|
|
il = ilnblnk(gfofile) |
303 |
|
|
write(msgbuf,'(a,a)') |
304 |
|
|
& ' GFO data are read from: ',gfofile(1:il) |
305 |
|
|
call print_message( msgbuf, standardmessageunit, |
306 |
|
|
& SQUEEZE_RIGHT , mythid) |
307 |
|
|
write(msgbuf,'(a,i10,i8)') |
308 |
|
|
& ' GFO start date is: ', |
309 |
|
|
& gfostartdate(1), |
310 |
|
|
& gfostartdate(2) |
311 |
|
|
call print_message( msgbuf, standardmessageunit, |
312 |
|
|
& SQUEEZE_RIGHT , mythid) |
313 |
|
|
write(msgbuf,'(a,e18.11)') |
314 |
|
|
& ' GFO sampling period is: ', |
315 |
|
|
& gfoperiod |
316 |
|
|
call print_message( msgbuf, standardmessageunit, |
317 |
|
|
& SQUEEZE_RIGHT , mythid) |
318 |
|
|
endif |
319 |
|
|
#endif /* ALLOW_SSH_GFOANOM_COST_CONTRIBUTION */ |
320 |
|
|
|
321 |
gforget |
1.11 |
#endif /* ALLOW_ECCO and ECCO_CTRL_DEPRECATED */ |
322 |
gforget |
1.9 |
|
323 |
heimbach |
1.1 |
return |
324 |
|
|
end |
325 |
|
|
|