1 |
dimitri |
1.8 |
c $Header: /usr/local/gcmpack/MITgcm/pkg/exf/exf_clim_summary.F,v 1.7 2003/10/09 04:19:19 edhill Exp $ |
2 |
heimbach |
1.1 |
|
3 |
edhill |
1.7 |
#include "EXF_OPTIONS.h" |
4 |
heimbach |
1.1 |
|
5 |
|
|
subroutine exf_clim_summary( |
6 |
|
|
I mythid |
7 |
|
|
& ) |
8 |
|
|
|
9 |
|
|
c ================================================================== |
10 |
|
|
c SUBROUTINE exf_clim_summary |
11 |
|
|
c ================================================================== |
12 |
|
|
c |
13 |
|
|
c o List all the settings of the external forcing. |
14 |
|
|
c |
15 |
|
|
c started: Ralf.Giering@FastOpt.de 25-Mai-2000 |
16 |
dimitri |
1.5 |
c mods for pkg/seaice: menemenlis@jpl.nasa.gov 20-Dec-2002 |
17 |
heimbach |
1.1 |
c |
18 |
|
|
c ================================================================== |
19 |
|
|
c SUBROUTINE exf_clim_summary |
20 |
|
|
c ================================================================== |
21 |
|
|
|
22 |
|
|
implicit none |
23 |
|
|
|
24 |
|
|
c == global variables == |
25 |
|
|
|
26 |
|
|
#include "EEPARAMS.h" |
27 |
|
|
#include "SIZE.h" |
28 |
|
|
#include "cal.h" |
29 |
|
|
#include "exf.h" |
30 |
dimitri |
1.6 |
#include "exf_param.h" |
31 |
heimbach |
1.1 |
#include "exf_clim_param.h" |
32 |
|
|
|
33 |
|
|
c == routine arguments == |
34 |
|
|
|
35 |
|
|
c mythid - thread number for this instance of the routine. |
36 |
|
|
|
37 |
|
|
integer mythid |
38 |
|
|
|
39 |
|
|
c == local variables == |
40 |
|
|
|
41 |
dimitri |
1.4 |
#if defined(ALLOW_CLIMTEMP_RELAXATION) || \ |
42 |
|
|
defined(ALLOW_CLIMSALT_RELAXATION) || \ |
43 |
|
|
defined(ALLOW_CLIMSST_RELAXATION ) || \ |
44 |
|
|
defined(ALLOW_CLIMSSS_RELAXATION ) |
45 |
heimbach |
1.1 |
integer il |
46 |
dimitri |
1.4 |
#endif |
47 |
heimbach |
1.1 |
|
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 |
|
|
&'// External forcing climatology 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 |
|
|
write(msgbuf,'(a,a)') |
78 |
|
|
&'External forcing version: ',externalforcingversion |
79 |
|
|
call print_message( msgbuf, standardmessageunit, |
80 |
|
|
& SQUEEZE_RIGHT , mythid) |
81 |
|
|
write(msgbuf,'(a,a)') |
82 |
|
|
&'Uses Calendar version: ',usescalendarversion |
83 |
|
|
call print_message( msgbuf, standardmessageunit, |
84 |
|
|
& SQUEEZE_RIGHT , mythid) |
85 |
|
|
write(msgbuf,'(a)') |
86 |
|
|
&' ' |
87 |
|
|
call print_message( msgbuf, standardmessageunit, |
88 |
|
|
& SQUEEZE_RIGHT , mythid) |
89 |
|
|
|
90 |
|
|
c For each data set used the summary prints the calendar data |
91 |
|
|
c and the corresponding file from which the data will be read. |
92 |
|
|
|
93 |
|
|
#ifdef ALLOW_CLIMTEMP_RELAXATION |
94 |
|
|
write(msgbuf,'(a)') |
95 |
|
|
&'// ALLOW_CLIMTEMP_RELAXATION: defined' |
96 |
|
|
call print_message( msgbuf, standardmessageunit, |
97 |
|
|
& SQUEEZE_RIGHT , mythid) |
98 |
|
|
#else |
99 |
|
|
write(msgbuf,'(a)') |
100 |
|
|
&'// ALLOW_CLIMTEMP_RELAXATION: NOT defined' |
101 |
|
|
call print_message( msgbuf, standardmessageunit, |
102 |
|
|
& SQUEEZE_RIGHT , mythid) |
103 |
|
|
#endif |
104 |
|
|
|
105 |
|
|
#ifdef ALLOW_CLIMSALT_RELAXATION |
106 |
|
|
write(msgbuf,'(a)') |
107 |
|
|
&'// ALLOW_CLIMSALT_RELAXATION: defined' |
108 |
|
|
call print_message( msgbuf, standardmessageunit, |
109 |
|
|
& SQUEEZE_RIGHT , mythid) |
110 |
|
|
#else |
111 |
|
|
write(msgbuf,'(a)') |
112 |
|
|
&'// ALLOW_CLIMSALT_RELAXATION: NOT defined' |
113 |
|
|
call print_message( msgbuf, standardmessageunit, |
114 |
|
|
& SQUEEZE_RIGHT , mythid) |
115 |
|
|
#endif |
116 |
|
|
|
117 |
|
|
#ifdef ALLOW_CLIMSST_RELAXATION |
118 |
|
|
write(msgbuf,'(a)') |
119 |
|
|
&'// ALLOW_CLIMSST_RELAXATION: defined' |
120 |
|
|
call print_message( msgbuf, standardmessageunit, |
121 |
|
|
& SQUEEZE_RIGHT , mythid) |
122 |
|
|
#else |
123 |
|
|
write(msgbuf,'(a)') |
124 |
|
|
&'// ALLOW_CLIMSST_RELAXATION: NOT defined' |
125 |
|
|
call print_message( msgbuf, standardmessageunit, |
126 |
|
|
& SQUEEZE_RIGHT , mythid) |
127 |
|
|
#endif |
128 |
|
|
|
129 |
|
|
#ifdef ALLOW_CLIMSSS_RELAXATION |
130 |
|
|
write(msgbuf,'(a)') |
131 |
|
|
&'// ALLOW_CLIMSSS_RELAXATION: defined' |
132 |
|
|
call print_message( msgbuf, standardmessageunit, |
133 |
|
|
& SQUEEZE_RIGHT , mythid) |
134 |
|
|
#else |
135 |
|
|
write(msgbuf,'(a)') |
136 |
|
|
&'// ALLOW_CLIMSSS_RELAXATION: NOT defined' |
137 |
|
|
call print_message( msgbuf, standardmessageunit, |
138 |
|
|
& SQUEEZE_RIGHT , mythid) |
139 |
|
|
#endif |
140 |
|
|
|
141 |
|
|
c The climatological data sets are assumed to contain monthly |
142 |
|
|
c data. This can be changed in a later version to an arbitrary |
143 |
|
|
c number of intervals during a given year. |
144 |
|
|
|
145 |
|
|
#ifdef ALLOW_CLIMTEMP_RELAXATION |
146 |
|
|
c Relaxation to pot. temperature climatology. |
147 |
|
|
il = ilnblnk(climtempfile) |
148 |
|
|
write(msgbuf,'(a)') |
149 |
|
|
&' ' |
150 |
|
|
call print_message( msgbuf, standardmessageunit, |
151 |
|
|
& SQUEEZE_RIGHT , mythid) |
152 |
|
|
|
153 |
dimitri |
1.8 |
write(msgbuf,'(a,f12.0)') |
154 |
heimbach |
1.1 |
&' Climatological pot. temperature starts at ', |
155 |
dimitri |
1.8 |
& climtempstartdate |
156 |
heimbach |
1.1 |
call print_message( msgbuf, standardmessageunit, |
157 |
|
|
& SQUEEZE_RIGHT , mythid) |
158 |
dimitri |
1.8 |
write(msgbuf,'(a,f12.0)') |
159 |
heimbach |
1.1 |
&' Climatological pot. temperature period is ', |
160 |
dimitri |
1.8 |
& climtempperiod |
161 |
heimbach |
1.1 |
call print_message( msgbuf, standardmessageunit, |
162 |
|
|
& SQUEEZE_RIGHT , mythid) |
163 |
|
|
|
164 |
|
|
write(msgbuf,'(a)') |
165 |
|
|
&' Climatological pot. temperature is read from file:' |
166 |
|
|
call print_message( msgbuf, standardmessageunit, |
167 |
|
|
& SQUEEZE_RIGHT , mythid) |
168 |
|
|
write(msgbuf,'(a,a,a)') |
169 |
|
|
&' >> ',climtempfile(1:il),' <<' |
170 |
|
|
call print_message( msgbuf, standardmessageunit, |
171 |
|
|
& SQUEEZE_RIGHT , mythid) |
172 |
|
|
#endif |
173 |
|
|
|
174 |
|
|
#ifdef ALLOW_CLIMSALT_RELAXATION |
175 |
|
|
c Relaxation to salinity climatology. |
176 |
|
|
il = ilnblnk(climsaltfile) |
177 |
|
|
write(msgbuf,'(a)') |
178 |
|
|
&' ' |
179 |
|
|
call print_message( msgbuf, standardmessageunit, |
180 |
|
|
& SQUEEZE_RIGHT , mythid) |
181 |
dimitri |
1.8 |
write(msgbuf,'(a,f12.0)') |
182 |
heimbach |
1.1 |
&' Climatological salinity starts at ', |
183 |
dimitri |
1.8 |
& climsaltstartdate |
184 |
heimbach |
1.1 |
call print_message( msgbuf, standardmessageunit, |
185 |
|
|
& SQUEEZE_RIGHT , mythid) |
186 |
dimitri |
1.8 |
write(msgbuf,'(a,f12.0)') |
187 |
heimbach |
1.1 |
&' Climatological salinity period is ', |
188 |
dimitri |
1.8 |
& climsaltperiod |
189 |
heimbach |
1.1 |
call print_message( msgbuf, standardmessageunit, |
190 |
|
|
& SQUEEZE_RIGHT , mythid) |
191 |
|
|
write(msgbuf,'(a)') |
192 |
|
|
&' Climatological salinity is read from file:' |
193 |
|
|
call print_message( msgbuf, standardmessageunit, |
194 |
|
|
& SQUEEZE_RIGHT , mythid) |
195 |
|
|
write(msgbuf,'(a,a,a)') |
196 |
|
|
&' >> ',climsaltfile(1:il),' <<' |
197 |
|
|
call print_message( msgbuf, standardmessageunit, |
198 |
|
|
& SQUEEZE_RIGHT , mythid) |
199 |
|
|
#endif |
200 |
|
|
|
201 |
|
|
#ifdef ALLOW_CLIMSST_RELAXATION |
202 |
|
|
c Relaxation to SST climatology. |
203 |
|
|
il = ilnblnk(climsstfile) |
204 |
|
|
write(msgbuf,'(a)') |
205 |
|
|
&' ' |
206 |
|
|
call print_message( msgbuf, standardmessageunit, |
207 |
|
|
& SQUEEZE_RIGHT , mythid) |
208 |
dimitri |
1.8 |
write(msgbuf,'(a,f12.0)') |
209 |
heimbach |
1.1 |
&' Climatological SST starts at ', |
210 |
dimitri |
1.8 |
& climsststartdate |
211 |
heimbach |
1.1 |
call print_message( msgbuf, standardmessageunit, |
212 |
|
|
& SQUEEZE_RIGHT , mythid) |
213 |
dimitri |
1.8 |
write(msgbuf,'(a,f12.0)') |
214 |
heimbach |
1.1 |
&' Climatological SST period is ', |
215 |
dimitri |
1.8 |
& climsstperiod |
216 |
heimbach |
1.1 |
call print_message( msgbuf, standardmessageunit, |
217 |
|
|
& SQUEEZE_RIGHT , mythid) |
218 |
|
|
write(msgbuf,'(a)') |
219 |
|
|
&' Climatological SST is read from file:' |
220 |
|
|
call print_message( msgbuf, standardmessageunit, |
221 |
|
|
& SQUEEZE_RIGHT , mythid) |
222 |
|
|
write(msgbuf,'(a,a,a)') |
223 |
|
|
&' >> ',climsstfile(1:il),' <<' |
224 |
|
|
call print_message( msgbuf, standardmessageunit, |
225 |
|
|
& SQUEEZE_RIGHT , mythid) |
226 |
|
|
#endif |
227 |
|
|
|
228 |
|
|
#ifdef ALLOW_CLIMSSS_RELAXATION |
229 |
|
|
c Relaxation to SSS climatology. |
230 |
|
|
il = ilnblnk(climsssfile) |
231 |
|
|
write(msgbuf,'(a)') |
232 |
|
|
&' ' |
233 |
|
|
call print_message( msgbuf, standardmessageunit, |
234 |
|
|
& SQUEEZE_RIGHT , mythid) |
235 |
dimitri |
1.8 |
write(msgbuf,'(a,f12.0)') |
236 |
heimbach |
1.1 |
&' Climatological SSS starts at ', |
237 |
dimitri |
1.8 |
& climsssstartdate |
238 |
heimbach |
1.1 |
call print_message( msgbuf, standardmessageunit, |
239 |
|
|
& SQUEEZE_RIGHT , mythid) |
240 |
dimitri |
1.8 |
write(msgbuf,'(a,f12.0)') |
241 |
heimbach |
1.1 |
&' Climatological SSS period is ', |
242 |
dimitri |
1.8 |
& climsssperiod |
243 |
heimbach |
1.1 |
call print_message( msgbuf, standardmessageunit, |
244 |
|
|
& SQUEEZE_RIGHT , mythid) |
245 |
|
|
write(msgbuf,'(a)') |
246 |
|
|
&' Climatological SSS is read from file:' |
247 |
|
|
call print_message( msgbuf, standardmessageunit, |
248 |
|
|
& SQUEEZE_RIGHT , mythid) |
249 |
|
|
write(msgbuf,'(a,a,a)') |
250 |
|
|
&' >> ',climsssfile(1:il),' <<' |
251 |
|
|
call print_message( msgbuf, standardmessageunit, |
252 |
|
|
& SQUEEZE_RIGHT , mythid) |
253 |
|
|
#endif |
254 |
|
|
|
255 |
|
|
write(msgbuf,'(a)') |
256 |
|
|
&' ' |
257 |
|
|
call print_message( msgbuf, standardmessageunit, |
258 |
|
|
& SQUEEZE_RIGHT , mythid) |
259 |
|
|
write(msgbuf,'(a)') |
260 |
|
|
&'// =======================================================' |
261 |
|
|
call print_message( msgbuf, standardmessageunit, |
262 |
|
|
& SQUEEZE_RIGHT , mythid) |
263 |
|
|
write(msgbuf,'(a)') |
264 |
|
|
&'// External forcing climatology configuration >>> END <<<' |
265 |
|
|
call print_message( msgbuf, standardmessageunit, |
266 |
|
|
& SQUEEZE_RIGHT , mythid) |
267 |
|
|
write(msgbuf,'(a)') |
268 |
|
|
&'// =======================================================' |
269 |
|
|
call print_message( msgbuf, standardmessageunit, |
270 |
|
|
& SQUEEZE_RIGHT , mythid) |
271 |
|
|
write(msgbuf,'(a)') |
272 |
|
|
&' ' |
273 |
|
|
call print_message( msgbuf, standardmessageunit, |
274 |
|
|
& SQUEEZE_RIGHT , mythid) |
275 |
|
|
|
276 |
|
|
end |