1 | MODULE limctl |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE limctl *** |
---|
4 | !! LIM-3 : control and printing |
---|
5 | !!====================================================================== |
---|
6 | !! History : 3.5 ! 2015-01 (M. Vancoppenolle) Original code |
---|
7 | !!---------------------------------------------------------------------- |
---|
8 | #if defined key_lim3 |
---|
9 | !!---------------------------------------------------------------------- |
---|
10 | !! 'key_lim3' LIM3 sea-ice model |
---|
11 | !!---------------------------------------------------------------------- |
---|
12 | !! lim_ctl : control prints in case of crash |
---|
13 | !! lim_prt : ice control print at a given grid point |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | USE oce ! ocean dynamics and tracers |
---|
16 | USE dom_oce ! ocean space and time domain |
---|
17 | USE ice ! LIM-3: ice variables |
---|
18 | USE thd_ice ! LIM-3: thermodynamical variables |
---|
19 | USE sbc_oce ! Surface boundary condition: ocean fields |
---|
20 | USE sbc_ice ! Surface boundary condition: ice fields |
---|
21 | |
---|
22 | USE phycst ! Define parameters for the routines |
---|
23 | |
---|
24 | USE lib_mpp ! MPP library |
---|
25 | USE wrk_nemo ! work arrays |
---|
26 | USE timing ! Timing |
---|
27 | USE in_out_manager ! I/O manager |
---|
28 | USE prtctl ! Print control |
---|
29 | USE lib_fortran ! |
---|
30 | |
---|
31 | IMPLICIT NONE |
---|
32 | PRIVATE |
---|
33 | |
---|
34 | PUBLIC lim_ctl |
---|
35 | PUBLIC lim_prt |
---|
36 | |
---|
37 | !! * Substitutions |
---|
38 | # include "vectopt_loop_substitute.h90" |
---|
39 | !!---------------------------------------------------------------------- |
---|
40 | !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011) |
---|
41 | !! $Id: limctl.F90 5043 2015-01-28 16:44:18Z clem $ |
---|
42 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
43 | !!---------------------------------------------------------------------- |
---|
44 | |
---|
45 | CONTAINS |
---|
46 | |
---|
47 | SUBROUTINE lim_ctl( kt ) |
---|
48 | !!----------------------------------------------------------------------- |
---|
49 | !! *** ROUTINE lim_ctl *** |
---|
50 | !! |
---|
51 | !! ** Purpose : Alerts in case of model crash |
---|
52 | !!------------------------------------------------------------------- |
---|
53 | INTEGER, INTENT(in) :: kt ! ocean time step |
---|
54 | INTEGER :: ji, jj, jk, jl ! dummy loop indices |
---|
55 | INTEGER :: inb_altests ! number of alert tests (max 20) |
---|
56 | INTEGER :: ialert_id ! number of the current alert |
---|
57 | REAL(wp) :: ztmelts ! ice layer melting point |
---|
58 | CHARACTER (len=30), DIMENSION(20) :: cl_alname ! name of alert |
---|
59 | INTEGER , DIMENSION(20) :: inb_alp ! number of alerts positive |
---|
60 | !!------------------------------------------------------------------- |
---|
61 | |
---|
62 | inb_altests = 10 |
---|
63 | inb_alp(:) = 0 |
---|
64 | |
---|
65 | ! Alert if incompatible volume and concentration |
---|
66 | ialert_id = 2 ! reference number of this alert |
---|
67 | cl_alname(ialert_id) = ' Incompat vol and con ' ! name of the alert |
---|
68 | |
---|
69 | DO jl = 1, jpl |
---|
70 | DO jj = 1, jpj |
---|
71 | DO ji = 1, jpi |
---|
72 | IF( v_i(ji,jj,jl) /= 0._wp .AND. a_i(ji,jj,jl) == 0._wp ) THEN |
---|
73 | !WRITE(numout,*) ' ALERTE 2 : Incompatible volume and concentration ' |
---|
74 | !WRITE(numout,*) ' at_i ', at_i(ji,jj) |
---|
75 | !WRITE(numout,*) ' Point - category', ji, jj, jl |
---|
76 | !WRITE(numout,*) ' a_i *** a_i_b ', a_i (ji,jj,jl), a_i_b (ji,jj,jl) |
---|
77 | !WRITE(numout,*) ' v_i *** v_i_b ', v_i (ji,jj,jl), v_i_b (ji,jj,jl) |
---|
78 | inb_alp(ialert_id) = inb_alp(ialert_id) + 1 |
---|
79 | ENDIF |
---|
80 | END DO |
---|
81 | END DO |
---|
82 | END DO |
---|
83 | |
---|
84 | ! Alerte if very thick ice |
---|
85 | ialert_id = 3 ! reference number of this alert |
---|
86 | cl_alname(ialert_id) = ' Very thick ice ' ! name of the alert |
---|
87 | jl = jpl |
---|
88 | DO jj = 1, jpj |
---|
89 | DO ji = 1, jpi |
---|
90 | IF( ht_i(ji,jj,jl) > 50._wp ) THEN |
---|
91 | !CALL lim_prt( kt, ji, jj, 2, ' ALERTE 3 : Very thick ice ' ) |
---|
92 | inb_alp(ialert_id) = inb_alp(ialert_id) + 1 |
---|
93 | ENDIF |
---|
94 | END DO |
---|
95 | END DO |
---|
96 | |
---|
97 | ! Alert if very fast ice |
---|
98 | ialert_id = 4 ! reference number of this alert |
---|
99 | cl_alname(ialert_id) = ' Very fast ice ' ! name of the alert |
---|
100 | DO jj = 1, jpj |
---|
101 | DO ji = 1, jpi |
---|
102 | IF( MAX( ABS( u_ice(ji,jj) ), ABS( v_ice(ji,jj) ) ) > 1.5 .AND. & |
---|
103 | & at_i(ji,jj) > 0._wp ) THEN |
---|
104 | !CALL lim_prt( kt, ji, jj, 1, ' ALERTE 4 : Very fast ice ' ) |
---|
105 | !WRITE(numout,*) ' ice strength : ', strength(ji,jj) |
---|
106 | !WRITE(numout,*) ' oceanic stress utau : ', utau(ji,jj) |
---|
107 | !WRITE(numout,*) ' oceanic stress vtau : ', vtau(ji,jj) |
---|
108 | !WRITE(numout,*) ' sea-ice stress utau_ice : ', utau_ice(ji,jj) |
---|
109 | !WRITE(numout,*) ' sea-ice stress vtau_ice : ', vtau_ice(ji,jj) |
---|
110 | !WRITE(numout,*) ' oceanic speed u : ', u_oce(ji,jj) |
---|
111 | !WRITE(numout,*) ' oceanic speed v : ', v_oce(ji,jj) |
---|
112 | !WRITE(numout,*) ' sst : ', sst_m(ji,jj) |
---|
113 | !WRITE(numout,*) ' sss : ', sss_m(ji,jj) |
---|
114 | !WRITE(numout,*) |
---|
115 | inb_alp(ialert_id) = inb_alp(ialert_id) + 1 |
---|
116 | ENDIF |
---|
117 | END DO |
---|
118 | END DO |
---|
119 | |
---|
120 | ! Alert if there is ice on continents |
---|
121 | ialert_id = 6 ! reference number of this alert |
---|
122 | cl_alname(ialert_id) = ' Ice on continents ' ! name of the alert |
---|
123 | DO jj = 1, jpj |
---|
124 | DO ji = 1, jpi |
---|
125 | IF( tmask(ji,jj,1) <= 0._wp .AND. at_i(ji,jj) > 0._wp ) THEN |
---|
126 | !CALL lim_prt( kt, ji, jj, 1, ' ALERTE 6 : Ice on continents ' ) |
---|
127 | !WRITE(numout,*) ' masks s, u, v : ', tmask(ji,jj,1), umask(ji,jj,1), vmask(ji,jj,1) |
---|
128 | !WRITE(numout,*) ' sst : ', sst_m(ji,jj) |
---|
129 | !WRITE(numout,*) ' sss : ', sss_m(ji,jj) |
---|
130 | !WRITE(numout,*) ' at_i(ji,jj) : ', at_i(ji,jj) |
---|
131 | !WRITE(numout,*) ' v_ice(ji,jj) : ', v_ice(ji,jj) |
---|
132 | !WRITE(numout,*) ' v_ice(ji,jj-1) : ', v_ice(ji,jj-1) |
---|
133 | !WRITE(numout,*) ' u_ice(ji-1,jj) : ', u_ice(ji-1,jj) |
---|
134 | !WRITE(numout,*) ' u_ice(ji,jj) : ', v_ice(ji,jj) |
---|
135 | ! |
---|
136 | inb_alp(ialert_id) = inb_alp(ialert_id) + 1 |
---|
137 | ENDIF |
---|
138 | END DO |
---|
139 | END DO |
---|
140 | |
---|
141 | ! |
---|
142 | ! ! Alert if very fresh ice |
---|
143 | ialert_id = 7 ! reference number of this alert |
---|
144 | cl_alname(ialert_id) = ' Very fresh ice ' ! name of the alert |
---|
145 | DO jl = 1, jpl |
---|
146 | DO jj = 1, jpj |
---|
147 | DO ji = 1, jpi |
---|
148 | IF( sm_i(ji,jj,jl) < 0.1 .AND. a_i(ji,jj,jl) > 0._wp ) THEN |
---|
149 | ! CALL lim_prt(kt,ji,jj,1, ' ALERTE 7 : Very fresh ice ' ) |
---|
150 | ! WRITE(numout,*) ' sst : ', sst_m(ji,jj) |
---|
151 | ! WRITE(numout,*) ' sss : ', sss_m(ji,jj) |
---|
152 | ! WRITE(numout,*) |
---|
153 | inb_alp(ialert_id) = inb_alp(ialert_id) + 1 |
---|
154 | ENDIF |
---|
155 | END DO |
---|
156 | END DO |
---|
157 | END DO |
---|
158 | ! |
---|
159 | |
---|
160 | ! ! Alert if too old ice |
---|
161 | ialert_id = 9 ! reference number of this alert |
---|
162 | cl_alname(ialert_id) = ' Very old ice ' ! name of the alert |
---|
163 | DO jl = 1, jpl |
---|
164 | DO jj = 1, jpj |
---|
165 | DO ji = 1, jpi |
---|
166 | IF ( ( ( ABS( o_i(ji,jj,jl) ) > rdt_ice ) .OR. & |
---|
167 | ( ABS( o_i(ji,jj,jl) ) < 0._wp) ) .AND. & |
---|
168 | ( a_i(ji,jj,jl) > 0._wp ) ) THEN |
---|
169 | !CALL lim_prt( kt, ji, jj, 1, ' ALERTE 9 : Wrong ice age ') |
---|
170 | inb_alp(ialert_id) = inb_alp(ialert_id) + 1 |
---|
171 | ENDIF |
---|
172 | END DO |
---|
173 | END DO |
---|
174 | END DO |
---|
175 | |
---|
176 | ! Alert on salt flux |
---|
177 | ialert_id = 5 ! reference number of this alert |
---|
178 | cl_alname(ialert_id) = ' High salt flux ' ! name of the alert |
---|
179 | DO jj = 1, jpj |
---|
180 | DO ji = 1, jpi |
---|
181 | IF( ABS( sfx (ji,jj) ) > 1.0e-2 ) THEN ! = 1 psu/day for 1m ocean depth |
---|
182 | !CALL lim_prt( kt, ji, jj, 3, ' ALERTE 5 : High salt flux ' ) |
---|
183 | !DO jl = 1, jpl |
---|
184 | !WRITE(numout,*) ' Category no: ', jl |
---|
185 | !WRITE(numout,*) ' a_i : ', a_i (ji,jj,jl) , ' a_i_b : ', a_i_b (ji,jj,jl) |
---|
186 | !WRITE(numout,*) ' v_i : ', v_i (ji,jj,jl) , ' v_i_b : ', v_i_b (ji,jj,jl) |
---|
187 | !WRITE(numout,*) ' ' |
---|
188 | !END DO |
---|
189 | inb_alp(ialert_id) = inb_alp(ialert_id) + 1 |
---|
190 | ENDIF |
---|
191 | END DO |
---|
192 | END DO |
---|
193 | |
---|
194 | ! Alert if qns very big |
---|
195 | ialert_id = 8 ! reference number of this alert |
---|
196 | cl_alname(ialert_id) = ' fnsolar very big ' ! name of the alert |
---|
197 | DO jj = 1, jpj |
---|
198 | DO ji = 1, jpi |
---|
199 | IF( ABS( qns(ji,jj) ) > 1500._wp .AND. at_i(ji,jj) > 0._wp ) THEN |
---|
200 | ! |
---|
201 | !WRITE(numout,*) ' ALERTE 8 : Very high non-solar heat flux' |
---|
202 | !WRITE(numout,*) ' ji, jj : ', ji, jj |
---|
203 | !WRITE(numout,*) ' qns : ', qns(ji,jj) |
---|
204 | !WRITE(numout,*) ' sst : ', sst_m(ji,jj) |
---|
205 | !WRITE(numout,*) ' sss : ', sss_m(ji,jj) |
---|
206 | ! |
---|
207 | !CALL lim_prt( kt, ji, jj, 2, ' ') |
---|
208 | inb_alp(ialert_id) = inb_alp(ialert_id) + 1 |
---|
209 | ! |
---|
210 | ENDIF |
---|
211 | END DO |
---|
212 | END DO |
---|
213 | !+++++ |
---|
214 | |
---|
215 | ! Alert if very warm ice |
---|
216 | ialert_id = 10 ! reference number of this alert |
---|
217 | cl_alname(ialert_id) = ' Very warm ice ' ! name of the alert |
---|
218 | inb_alp(ialert_id) = 0 |
---|
219 | DO jl = 1, jpl |
---|
220 | DO jk = 1, nlay_i |
---|
221 | DO jj = 1, jpj |
---|
222 | DO ji = 1, jpi |
---|
223 | ztmelts = -tmut * s_i(ji,jj,jk,jl) + rt0 |
---|
224 | IF( t_i(ji,jj,jk,jl) >= ztmelts .AND. v_i(ji,jj,jl) > 1.e-10 & |
---|
225 | & .AND. a_i(ji,jj,jl) > 0._wp ) THEN |
---|
226 | !WRITE(numout,*) ' ALERTE 10 : Very warm ice' |
---|
227 | !WRITE(numout,*) ' ji, jj, jk, jl : ', ji, jj, jk, jl |
---|
228 | !WRITE(numout,*) ' t_i : ', t_i(ji,jj,jk,jl) |
---|
229 | !WRITE(numout,*) ' e_i : ', e_i(ji,jj,jk,jl) |
---|
230 | !WRITE(numout,*) ' s_i : ', s_i(ji,jj,jk,jl) |
---|
231 | !WRITE(numout,*) ' ztmelts : ', ztmelts |
---|
232 | inb_alp(ialert_id) = inb_alp(ialert_id) + 1 |
---|
233 | ENDIF |
---|
234 | END DO |
---|
235 | END DO |
---|
236 | END DO |
---|
237 | END DO |
---|
238 | |
---|
239 | ! sum of the alerts on all processors |
---|
240 | IF( lk_mpp ) THEN |
---|
241 | DO ialert_id = 1, inb_altests |
---|
242 | CALL mpp_sum(inb_alp(ialert_id)) |
---|
243 | END DO |
---|
244 | ENDIF |
---|
245 | |
---|
246 | ! print alerts |
---|
247 | IF( lwp ) THEN |
---|
248 | ialert_id = 1 ! reference number of this alert |
---|
249 | cl_alname(ialert_id) = ' NO alerte 1 ' ! name of the alert |
---|
250 | WRITE(numout,*) ' time step ',kt |
---|
251 | WRITE(numout,*) ' All alerts at the end of ice model ' |
---|
252 | DO ialert_id = 1, inb_altests |
---|
253 | WRITE(numout,*) ialert_id, cl_alname(ialert_id)//' : ', inb_alp(ialert_id), ' times ! ' |
---|
254 | END DO |
---|
255 | ENDIF |
---|
256 | ! |
---|
257 | END SUBROUTINE lim_ctl |
---|
258 | |
---|
259 | |
---|
260 | SUBROUTINE lim_prt( kt, ki, kj, kn, cd1 ) |
---|
261 | !!----------------------------------------------------------------------- |
---|
262 | !! *** ROUTINE lim_prt *** |
---|
263 | !! |
---|
264 | !! ** Purpose : Writes global ice state on the (i,j) point |
---|
265 | !! in ocean.ouput |
---|
266 | !! 3 possibilities exist |
---|
267 | !! n = 1/-1 -> simple ice state (plus Mechanical Check if -1) |
---|
268 | !! n = 2 -> exhaustive state |
---|
269 | !! n = 3 -> ice/ocean salt fluxes |
---|
270 | !! |
---|
271 | !! ** input : point coordinates (i,j) |
---|
272 | !! n : number of the option |
---|
273 | !!------------------------------------------------------------------- |
---|
274 | INTEGER , INTENT(in) :: kt ! ocean time step |
---|
275 | INTEGER , INTENT(in) :: ki, kj, kn ! ocean gridpoint indices |
---|
276 | CHARACTER(len=*), INTENT(in) :: cd1 ! |
---|
277 | !! |
---|
278 | INTEGER :: jl, ji, jj |
---|
279 | !!------------------------------------------------------------------- |
---|
280 | |
---|
281 | DO ji = mi0(ki), mi1(ki) |
---|
282 | DO jj = mj0(kj), mj1(kj) |
---|
283 | |
---|
284 | WRITE(numout,*) ' time step ',kt,' ',cd1 ! print title |
---|
285 | |
---|
286 | !---------------- |
---|
287 | ! Simple state |
---|
288 | !---------------- |
---|
289 | |
---|
290 | IF ( kn == 1 .OR. kn == -1 ) THEN |
---|
291 | WRITE(numout,*) ' lim_prt - Point : ',ji,jj |
---|
292 | WRITE(numout,*) ' ~~~~~~~~~~~~~~ ' |
---|
293 | WRITE(numout,*) ' Simple state ' |
---|
294 | WRITE(numout,*) ' masks s,u,v : ', tmask(ji,jj,1), umask(ji,jj,1), vmask(ji,jj,1) |
---|
295 | WRITE(numout,*) ' lat - long : ', gphit(ji,jj), glamt(ji,jj) |
---|
296 | WRITE(numout,*) ' Time step : ', numit |
---|
297 | WRITE(numout,*) ' - Ice drift ' |
---|
298 | WRITE(numout,*) ' ~~~~~~~~~~~ ' |
---|
299 | WRITE(numout,*) ' u_ice(i-1,j) : ', u_ice(ji-1,jj) |
---|
300 | WRITE(numout,*) ' u_ice(i ,j) : ', u_ice(ji,jj) |
---|
301 | WRITE(numout,*) ' v_ice(i ,j-1): ', v_ice(ji,jj-1) |
---|
302 | WRITE(numout,*) ' v_ice(i ,j) : ', v_ice(ji,jj) |
---|
303 | WRITE(numout,*) ' strength : ', strength(ji,jj) |
---|
304 | WRITE(numout,*) |
---|
305 | WRITE(numout,*) ' - Cell values ' |
---|
306 | WRITE(numout,*) ' ~~~~~~~~~~~ ' |
---|
307 | WRITE(numout,*) ' cell area : ', e12t(ji,jj) |
---|
308 | WRITE(numout,*) ' at_i : ', at_i(ji,jj) |
---|
309 | WRITE(numout,*) ' vt_i : ', vt_i(ji,jj) |
---|
310 | WRITE(numout,*) ' vt_s : ', vt_s(ji,jj) |
---|
311 | DO jl = 1, jpl |
---|
312 | WRITE(numout,*) ' - Category (', jl,')' |
---|
313 | WRITE(numout,*) ' a_i : ', a_i(ji,jj,jl) |
---|
314 | WRITE(numout,*) ' ht_i : ', ht_i(ji,jj,jl) |
---|
315 | WRITE(numout,*) ' ht_s : ', ht_s(ji,jj,jl) |
---|
316 | WRITE(numout,*) ' v_i : ', v_i(ji,jj,jl) |
---|
317 | WRITE(numout,*) ' v_s : ', v_s(ji,jj,jl) |
---|
318 | WRITE(numout,*) ' e_s : ', e_s(ji,jj,1,jl) |
---|
319 | WRITE(numout,*) ' e_i : ', e_i(ji,jj,1:nlay_i,jl) |
---|
320 | WRITE(numout,*) ' t_su : ', t_su(ji,jj,jl) |
---|
321 | WRITE(numout,*) ' t_snow : ', t_s(ji,jj,1,jl) |
---|
322 | WRITE(numout,*) ' t_i : ', t_i(ji,jj,1:nlay_i,jl) |
---|
323 | WRITE(numout,*) ' sm_i : ', sm_i(ji,jj,jl) |
---|
324 | WRITE(numout,*) ' smv_i : ', smv_i(ji,jj,jl) |
---|
325 | WRITE(numout,*) |
---|
326 | END DO |
---|
327 | ENDIF |
---|
328 | IF( kn == -1 ) THEN |
---|
329 | WRITE(numout,*) ' Mechanical Check ************** ' |
---|
330 | WRITE(numout,*) ' Check what means ice divergence ' |
---|
331 | WRITE(numout,*) ' Total ice concentration ', at_i (ji,jj) |
---|
332 | WRITE(numout,*) ' Total lead fraction ', ato_i(ji,jj) |
---|
333 | WRITE(numout,*) ' Sum of both ', ato_i(ji,jj) + at_i(ji,jj) |
---|
334 | WRITE(numout,*) ' Sum of both minus 1 ', ato_i(ji,jj) + at_i(ji,jj) - 1.00 |
---|
335 | ENDIF |
---|
336 | |
---|
337 | |
---|
338 | !-------------------- |
---|
339 | ! Exhaustive state |
---|
340 | !-------------------- |
---|
341 | |
---|
342 | IF ( kn .EQ. 2 ) THEN |
---|
343 | WRITE(numout,*) ' lim_prt - Point : ',ji,jj |
---|
344 | WRITE(numout,*) ' ~~~~~~~~~~~~~~ ' |
---|
345 | WRITE(numout,*) ' Exhaustive state ' |
---|
346 | WRITE(numout,*) ' lat - long ', gphit(ji,jj), glamt(ji,jj) |
---|
347 | WRITE(numout,*) ' Time step ', numit |
---|
348 | WRITE(numout,*) |
---|
349 | WRITE(numout,*) ' - Cell values ' |
---|
350 | WRITE(numout,*) ' ~~~~~~~~~~~ ' |
---|
351 | WRITE(numout,*) ' cell area : ', e12t(ji,jj) |
---|
352 | WRITE(numout,*) ' at_i : ', at_i(ji,jj) |
---|
353 | WRITE(numout,*) ' vt_i : ', vt_i(ji,jj) |
---|
354 | WRITE(numout,*) ' vt_s : ', vt_s(ji,jj) |
---|
355 | WRITE(numout,*) ' u_ice(i-1,j) : ', u_ice(ji-1,jj) |
---|
356 | WRITE(numout,*) ' u_ice(i ,j) : ', u_ice(ji,jj) |
---|
357 | WRITE(numout,*) ' v_ice(i ,j-1): ', v_ice(ji,jj-1) |
---|
358 | WRITE(numout,*) ' v_ice(i ,j) : ', v_ice(ji,jj) |
---|
359 | WRITE(numout,*) ' strength : ', strength(ji,jj) |
---|
360 | WRITE(numout,*) ' u_ice_b : ', u_ice_b(ji,jj) , ' v_ice_b : ', v_ice_b(ji,jj) |
---|
361 | WRITE(numout,*) |
---|
362 | |
---|
363 | DO jl = 1, jpl |
---|
364 | WRITE(numout,*) ' - Category (',jl,')' |
---|
365 | WRITE(numout,*) ' ~~~~~~~~ ' |
---|
366 | WRITE(numout,*) ' ht_i : ', ht_i(ji,jj,jl) , ' ht_s : ', ht_s(ji,jj,jl) |
---|
367 | WRITE(numout,*) ' t_i : ', t_i(ji,jj,1:nlay_i,jl) |
---|
368 | WRITE(numout,*) ' t_su : ', t_su(ji,jj,jl) , ' t_s : ', t_s(ji,jj,1,jl) |
---|
369 | WRITE(numout,*) ' sm_i : ', sm_i(ji,jj,jl) , ' o_i : ', o_i(ji,jj,jl) |
---|
370 | WRITE(numout,*) ' a_i : ', a_i(ji,jj,jl) , ' a_i_b : ', a_i_b(ji,jj,jl) |
---|
371 | WRITE(numout,*) ' v_i : ', v_i(ji,jj,jl) , ' v_i_b : ', v_i_b(ji,jj,jl) |
---|
372 | WRITE(numout,*) ' v_s : ', v_s(ji,jj,jl) , ' v_s_b : ', v_s_b(ji,jj,jl) |
---|
373 | WRITE(numout,*) ' e_i1 : ', e_i(ji,jj,1,jl) , ' ei1 : ', e_i_b(ji,jj,1,jl) |
---|
374 | WRITE(numout,*) ' e_i2 : ', e_i(ji,jj,2,jl) , ' ei2_b : ', e_i_b(ji,jj,2,jl) |
---|
375 | WRITE(numout,*) ' e_snow : ', e_s(ji,jj,1,jl) , ' e_snow_b : ', e_s_b(ji,jj,1,jl) |
---|
376 | WRITE(numout,*) ' smv_i : ', smv_i(ji,jj,jl) , ' smv_i_b : ', smv_i_b(ji,jj,jl) |
---|
377 | WRITE(numout,*) ' oa_i : ', oa_i(ji,jj,jl) , ' oa_i_b : ', oa_i_b(ji,jj,jl) |
---|
378 | END DO !jl |
---|
379 | |
---|
380 | WRITE(numout,*) |
---|
381 | WRITE(numout,*) ' - Heat / FW fluxes ' |
---|
382 | WRITE(numout,*) ' ~~~~~~~~~~~~~~~~ ' |
---|
383 | WRITE(numout,*) ' - Heat fluxes in and out the ice ***' |
---|
384 | WRITE(numout,*) ' qsr_ini : ', pfrld(ji,jj) * qsr(ji,jj) + SUM( a_i_b(ji,jj,:) * qsr_ice(ji,jj,:) ) |
---|
385 | WRITE(numout,*) ' qns_ini : ', pfrld(ji,jj) * qns(ji,jj) + SUM( a_i_b(ji,jj,:) * qns_ice(ji,jj,:) ) |
---|
386 | WRITE(numout,*) |
---|
387 | WRITE(numout,*) |
---|
388 | WRITE(numout,*) ' sst : ', sst_m(ji,jj) |
---|
389 | WRITE(numout,*) ' sss : ', sss_m(ji,jj) |
---|
390 | WRITE(numout,*) |
---|
391 | WRITE(numout,*) ' - Stresses ' |
---|
392 | WRITE(numout,*) ' ~~~~~~~~ ' |
---|
393 | WRITE(numout,*) ' utau_ice : ', utau_ice(ji,jj) |
---|
394 | WRITE(numout,*) ' vtau_ice : ', vtau_ice(ji,jj) |
---|
395 | WRITE(numout,*) ' utau : ', utau (ji,jj) |
---|
396 | WRITE(numout,*) ' vtau : ', vtau (ji,jj) |
---|
397 | WRITE(numout,*) ' oc. vel. u : ', u_oce (ji,jj) |
---|
398 | WRITE(numout,*) ' oc. vel. v : ', v_oce (ji,jj) |
---|
399 | ENDIF |
---|
400 | |
---|
401 | !--------------------- |
---|
402 | ! Salt / heat fluxes |
---|
403 | !--------------------- |
---|
404 | |
---|
405 | IF ( kn .EQ. 3 ) THEN |
---|
406 | WRITE(numout,*) ' lim_prt - Point : ',ji,jj |
---|
407 | WRITE(numout,*) ' ~~~~~~~~~~~~~~ ' |
---|
408 | WRITE(numout,*) ' - Salt / Heat Fluxes ' |
---|
409 | WRITE(numout,*) ' ~~~~~~~~~~~~~~~~ ' |
---|
410 | WRITE(numout,*) ' lat - long ', gphit(ji,jj), glamt(ji,jj) |
---|
411 | WRITE(numout,*) ' Time step ', numit |
---|
412 | WRITE(numout,*) |
---|
413 | WRITE(numout,*) ' - Heat fluxes at bottom interface ***' |
---|
414 | WRITE(numout,*) ' qsr : ', qsr(ji,jj) |
---|
415 | WRITE(numout,*) ' qns : ', qns(ji,jj) |
---|
416 | WRITE(numout,*) |
---|
417 | WRITE(numout,*) ' hfx_mass : ', hfx_thd(ji,jj) + hfx_dyn(ji,jj) + hfx_snw(ji,jj) + hfx_res(ji,jj) |
---|
418 | WRITE(numout,*) ' hfx_in : ', hfx_in(ji,jj) |
---|
419 | WRITE(numout,*) ' hfx_out : ', hfx_out(ji,jj) |
---|
420 | WRITE(numout,*) ' dhc : ', diag_heat(ji,jj) |
---|
421 | WRITE(numout,*) |
---|
422 | WRITE(numout,*) ' hfx_dyn : ', hfx_dyn(ji,jj) |
---|
423 | WRITE(numout,*) ' hfx_thd : ', hfx_thd(ji,jj) |
---|
424 | WRITE(numout,*) ' hfx_res : ', hfx_res(ji,jj) |
---|
425 | WRITE(numout,*) ' fhtur : ', fhtur(ji,jj) |
---|
426 | WRITE(numout,*) ' qlead : ', qlead(ji,jj) * r1_rdtice |
---|
427 | WRITE(numout,*) |
---|
428 | WRITE(numout,*) ' - Salt fluxes at bottom interface ***' |
---|
429 | WRITE(numout,*) ' emp : ', emp (ji,jj) |
---|
430 | WRITE(numout,*) ' sfx : ', sfx (ji,jj) |
---|
431 | WRITE(numout,*) ' sfx_res : ', sfx_res(ji,jj) |
---|
432 | WRITE(numout,*) ' sfx_bri : ', sfx_bri(ji,jj) |
---|
433 | WRITE(numout,*) ' sfx_dyn : ', sfx_dyn(ji,jj) |
---|
434 | WRITE(numout,*) |
---|
435 | WRITE(numout,*) ' - Momentum fluxes ' |
---|
436 | WRITE(numout,*) ' utau : ', utau(ji,jj) |
---|
437 | WRITE(numout,*) ' vtau : ', vtau(ji,jj) |
---|
438 | ENDIF |
---|
439 | WRITE(numout,*) ' ' |
---|
440 | ! |
---|
441 | END DO |
---|
442 | END DO |
---|
443 | ! |
---|
444 | END SUBROUTINE lim_prt |
---|
445 | |
---|
446 | #else |
---|
447 | !!-------------------------------------------------------------------------- |
---|
448 | !! Default option Empty Module No LIM3 sea-ice model |
---|
449 | !!-------------------------------------------------------------------------- |
---|
450 | CONTAINS |
---|
451 | SUBROUTINE lim_ctl ! Empty routine |
---|
452 | END SUBROUTINE lim_ctl |
---|
453 | SUBROUTINE lim_prt ! Empty routine |
---|
454 | END SUBROUTINE lim_prt |
---|
455 | #endif |
---|
456 | !!====================================================================== |
---|
457 | END MODULE limctl |
---|