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