1 | MODULE bio_medusa_fin_mod |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE bio_medusa_fin_mod *** |
---|
4 | !! Finalisation for TRC_BIO_MEDUSA |
---|
5 | !!====================================================================== |
---|
6 | !! History : |
---|
7 | !! - ! 2017-04 (M. Stringer) Code taken from trcbio_medusa.F90 |
---|
8 | !! - ! 2017-08 (A. Yool) Amend bethic reservoir updating |
---|
9 | !!---------------------------------------------------------------------- |
---|
10 | #if defined key_medusa |
---|
11 | !!---------------------------------------------------------------------- |
---|
12 | !! MEDUSA bio-model |
---|
13 | !!---------------------------------------------------------------------- |
---|
14 | |
---|
15 | IMPLICIT NONE |
---|
16 | PRIVATE |
---|
17 | |
---|
18 | PUBLIC bio_medusa_fin ! Called in trcbio_medusa.F90 |
---|
19 | |
---|
20 | !!---------------------------------------------------------------------- |
---|
21 | !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007) |
---|
22 | !! $Id$ |
---|
23 | !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) |
---|
24 | !!---------------------------------------------------------------------- |
---|
25 | |
---|
26 | CONTAINS |
---|
27 | |
---|
28 | SUBROUTINE bio_medusa_fin( kt ) |
---|
29 | !!--------------------------------------------------------------------- |
---|
30 | !! *** ROUTINE bio_medusa_fin *** |
---|
31 | !! This called from TRC_BIO_MEDUSA and |
---|
32 | !! - ... |
---|
33 | !!---------------------------------------------------------------------- |
---|
34 | USE bio_medusa_mod |
---|
35 | USE dom_oce, ONLY: atfp, atfp1, neuler, rdt, e3t_n, tmask |
---|
36 | USE in_out_manager, ONLY: lwp, numout |
---|
37 | # if defined key_iomput |
---|
38 | USE iom, ONLY: iom_put, lk_iomput |
---|
39 | # endif |
---|
40 | USE lbclnk, ONLY: lbc_lnk |
---|
41 | USE par_medusa, ONLY: jp_medusa_2d, jp_medusa_3d, & |
---|
42 | jp_medusa_trd |
---|
43 | USE par_oce, ONLY: jpi, jpim1, jpj, jpjm1, jpk |
---|
44 | USE phycst, ONLY: rsmall |
---|
45 | USE sms_medusa, ONLY: jinorgben, jorgben, & |
---|
46 | f3_co3, f3_h2co3, f3_hco3, & |
---|
47 | f3_omarg, f3_omcal, f3_pH, & |
---|
48 | za_sed_c, za_sed_ca, za_sed_fe, & |
---|
49 | za_sed_n, za_sed_si, & |
---|
50 | zb_sed_c, zb_sed_ca, zb_sed_fe, & |
---|
51 | zb_sed_n, zb_sed_si, & |
---|
52 | zn_sed_c, zn_sed_ca, zn_sed_fe, & |
---|
53 | zn_sed_n, zn_sed_si |
---|
54 | USE trc, ONLY: med_diag, nittrc000 |
---|
55 | USE trcnam_trp, ONLY: ln_trcadv_cen2, ln_trcadv_tvd |
---|
56 | |
---|
57 | !! time (integer timestep) |
---|
58 | INTEGER, INTENT( in ) :: kt |
---|
59 | |
---|
60 | INTEGER :: ji, jj |
---|
61 | INTEGER :: jn |
---|
62 | |
---|
63 | REAL(wp) :: fq0,fq1,fq2,fq3 |
---|
64 | |
---|
65 | # if defined key_roam |
---|
66 | !!---------------------------------------------------------------------- |
---|
67 | !! AXY (09/08/17): fix benthic submodel |
---|
68 | !!---------------------------------------------------------------------- |
---|
69 | !! Process benthic in/out fluxes |
---|
70 | !! These can be handled outside of the 3D calculations since the |
---|
71 | !! benthic pools (and fluxes) are 2D in nature; this code was |
---|
72 | !! developed with help from George Nurser (NOC); it cannot be run |
---|
73 | !! in a configuration with variable time-stepping with depth |
---|
74 | !!---------------------------------------------------------------------- |
---|
75 | !! |
---|
76 | !! time-step calculation |
---|
77 | if (jorgben.eq.1) then |
---|
78 | za_sed_n(:,:) = zb_sed_n(:,:) + ((2. * (rdt / 86400.)) * & |
---|
79 | ( f_sbenin_n(:,:) + f_fbenin_n(:,:) - f_benout_n(:,:) )) |
---|
80 | za_sed_fe(:,:) = zb_sed_fe(:,:) + ((2. * (rdt / 86400.)) * & |
---|
81 | ( f_sbenin_fe(:,:) + f_fbenin_fe(:,:) - f_benout_fe(:,:) )) |
---|
82 | za_sed_c(:,:) = zb_sed_c(:,:) + ((2. * (rdt / 86400.)) * & |
---|
83 | ( f_sbenin_c(:,:) + f_fbenin_c(:,:) - f_benout_c(:,:) )) |
---|
84 | endif |
---|
85 | if (jinorgben.eq.1) then |
---|
86 | za_sed_si(:,:) = zb_sed_si(:,:) + ((2. * (rdt / 86400.)) * & |
---|
87 | ( f_fbenin_si(:,:) - f_benout_si(:,:) )) |
---|
88 | za_sed_ca(:,:) = zb_sed_ca(:,:) + ((2. * (rdt / 86400.)) * & |
---|
89 | ( f_fbenin_ca(:,:) - f_benout_ca(:,:) )) |
---|
90 | endif |
---|
91 | !! |
---|
92 | !! time-level calculation |
---|
93 | if (jorgben.eq.1) then |
---|
94 | zb_sed_n(:,:) = zn_sed_n(:,:) + (atfp * & |
---|
95 | ( za_sed_n(:,:) - (2. * zn_sed_n(:,:)) + zb_sed_n(:,:) )) |
---|
96 | zn_sed_n(:,:) = za_sed_n(:,:) |
---|
97 | zb_sed_fe(:,:) = zn_sed_fe(:,:) + (atfp * & |
---|
98 | ( za_sed_fe(:,:) - (2. * zn_sed_fe(:,:)) + zb_sed_fe(:,:) )) |
---|
99 | zn_sed_fe(:,:) = za_sed_fe(:,:) |
---|
100 | zb_sed_c(:,:) = zn_sed_c(:,:) + (atfp * & |
---|
101 | ( za_sed_c(:,:) - (2. * zn_sed_c(:,:)) + zb_sed_c(:,:) )) |
---|
102 | zn_sed_c(:,:) = za_sed_c(:,:) |
---|
103 | endif |
---|
104 | if (jinorgben.eq.1) then |
---|
105 | zb_sed_si(:,:) = zn_sed_si(:,:) + (atfp * & |
---|
106 | ( za_sed_si(:,:) - (2. * zn_sed_si(:,:)) + zb_sed_si(:,:) )) |
---|
107 | zn_sed_si(:,:) = za_sed_si(:,:) |
---|
108 | zb_sed_ca(:,:) = zn_sed_ca(:,:) + (atfp * & |
---|
109 | ( za_sed_ca(:,:) - (2. * zn_sed_ca(:,:)) + zb_sed_ca(:,:) )) |
---|
110 | zn_sed_ca(:,:) = za_sed_ca(:,:) |
---|
111 | endif |
---|
112 | # endif |
---|
113 | |
---|
114 | # if defined key_debug_medusa |
---|
115 | !! AXY (12/07/17) |
---|
116 | !!----------------------------------------------------------------- |
---|
117 | !! Check conservation of MEDUSA's sinks-minus-sources using fflx_X |
---|
118 | !! diagnostics (i.e. biogeochemical processes only) |
---|
119 | !! - fflx_X diagnostics *should* include all transfers between |
---|
120 | !! modelled components |
---|
121 | !! - they should also include gains / losses due to air-sea |
---|
122 | !! fluxes of C and O2, aeolian and seafloor inputs of Fe, and |
---|
123 | !! inputs from seafloor "benthic buckets" (N, Si, Fe, C and |
---|
124 | !! alkalinity) |
---|
125 | !! - however, they do not include the transfer of material to |
---|
126 | !! "benthic buckets" by sedimenting slow- and fast-sinking |
---|
127 | !! detritus since these are separate 2D reservoirs |
---|
128 | !! - consequently, for a given water column, the integrated |
---|
129 | !! fluxes should sum to the "loss" of material to the "benthic |
---|
130 | !! buckets" |
---|
131 | !! - if they do not, this suggests that MEDUSA contains errors |
---|
132 | !! in its accounting (e.g. processes omitted from calculated |
---|
133 | !! fluxes) |
---|
134 | !! - here, the local integrated fluxes and benthic inputs (plus |
---|
135 | !! air-sea fluxes in the case of C) are reported together with |
---|
136 | !! the resulting error |
---|
137 | !! - only N, Si, C and alkalinity inventories considered; Fe and |
---|
138 | !! O2 overlooked because of wholesale loss (and addition, in |
---|
139 | !! the case of O2) of these tracers within the water column |
---|
140 | !!----------------------------------------------------------------- |
---|
141 | !! |
---|
142 | !! nitrogen |
---|
143 | DO jj = 2,jpjm1 |
---|
144 | DO ji = 2,jpim1 |
---|
145 | if (tmask(ji,jj,1) == 1) then |
---|
146 | fq0 = fflx_n(ji,jj) |
---|
147 | fq1 = f_sbenin_n(ji,jj) + f_fbenin_n(ji,jj) |
---|
148 | fq2 = fq0 + fq1 |
---|
149 | fq3 = f_benout_n(ji,jj) |
---|
150 | if (lwp) write (numout,'a,2i3,a,4f15,5)') & |
---|
151 | 'AXY N cons: (i,j)=',ji,jj,', (flx,ben,err,out)=', & |
---|
152 | fq0,fq1,fq2,fq3 |
---|
153 | ENDIF |
---|
154 | ENDDO |
---|
155 | ENDDO |
---|
156 | !! silicon |
---|
157 | DO jj = 2,jpjm1 |
---|
158 | DO ji = 2,jpim1 |
---|
159 | if (tmask(ji,jj,1) == 1) then |
---|
160 | fq0 = fflx_si(ji,jj) |
---|
161 | fq1 = f_fbenin_si(ji,jj) |
---|
162 | fq2 = fq0 + fq1 |
---|
163 | fq3 = f_benout_si(ji,jj) |
---|
164 | if (lwp) write (numout,'a,2i3,a,4f15,5)') & |
---|
165 | 'AXY Si cons: (i,j)=',ji,jj,', (flx,ben,err,out)=', & |
---|
166 | fq0,fq1,fq2,fq3 |
---|
167 | ENDIF |
---|
168 | ENDDO |
---|
169 | ENDDO |
---|
170 | !! carbon |
---|
171 | DO jj = 2,jpjm1 |
---|
172 | DO ji = 2,jpim1 |
---|
173 | if (tmask(ji,jj,1) == 1) then |
---|
174 | fq0 = fflx_c(ji,jj) |
---|
175 | fq1 = f_sbenin_c(ji,jj) + f_fbenin_c(ji,jj) + f_fbenin_ca(ji,jj) |
---|
176 | fq2 = f_co2flux(ji,jj) * fse3t(ji,jj,1) |
---|
177 | fq3 = fq0 + fq1 |
---|
178 | fq4 = f_benout_c(ji,jj) + f_benout_ca(ji,jj) |
---|
179 | if (lwp) write (numout,'a,2i3,a,5f15,5)') & |
---|
180 | 'AXY C cons: (i,j)=',ji,jj,', (flx,ben,asf,err,out)=', & |
---|
181 | fq0,fq1,fq2,fq3,fq4 |
---|
182 | ENDIF |
---|
183 | ENDDO |
---|
184 | ENDDO |
---|
185 | !! alkalinity |
---|
186 | DO jj = 2,jpjm1 |
---|
187 | DO ji = 2,jpim1 |
---|
188 | if (tmask(ji,jj,1) == 1) then |
---|
189 | fq0 = fflx_a(ji,jj) |
---|
190 | fq1 = 2.0 * f_fbenin_ca(ji,jj) |
---|
191 | fq2 = fq0 + fq1 |
---|
192 | fq3 = 2.0 * f_benout_ca(ji,jj) |
---|
193 | if (lwp) write (numout,'a,2i3,a,4f15,5)') & |
---|
194 | 'AXY alk cons: (i,j)=',ji,jj,', (flx,ben,err,out)=', & |
---|
195 | fq0,fq1,fq2,fq3 |
---|
196 | ENDIF |
---|
197 | ENDDO |
---|
198 | ENDDO |
---|
199 | # endif |
---|
200 | |
---|
201 | !!!--------------------------------------------------------------- |
---|
202 | !! Add very last diag calculations |
---|
203 | !!!--------------------------------------------------------------- |
---|
204 | DO jj = 2,jpjm1 |
---|
205 | DO ji = 2,jpim1 |
---|
206 | !! |
---|
207 | IF( med_diag%PN_JLIM%dgsave ) THEN |
---|
208 | fjln2d(ji,jj) = fjln2d(ji,jj) / MAX(ftot_pn(ji,jj), rsmall) |
---|
209 | ENDIF |
---|
210 | IF( med_diag%PN_NLIM%dgsave ) THEN |
---|
211 | fnln2d(ji,jj) = fnln2d(ji,jj) / MAX(ftot_pn(ji,jj), rsmall) |
---|
212 | ENDIF |
---|
213 | IF( med_diag%PN_FELIM%dgsave ) THEN |
---|
214 | ffln2d(ji,jj) = ffln2d(ji,jj) / MAX(ftot_pn(ji,jj), rsmall) |
---|
215 | ENDIF |
---|
216 | IF( med_diag%PD_JLIM%dgsave ) THEN |
---|
217 | fjld2d(ji,jj) = fjld2d(ji,jj) / MAX(ftot_pd(ji,jj), rsmall) |
---|
218 | ENDIF |
---|
219 | IF( med_diag%PD_NLIM%dgsave ) THEN |
---|
220 | fnld2d(ji,jj) = fnld2d(ji,jj) / MAX(ftot_pd(ji,jj), rsmall) |
---|
221 | ENDIF |
---|
222 | IF( med_diag%PD_FELIM%dgsave ) THEN |
---|
223 | ffld2d(ji,jj) = ffld2d(ji,jj) / MAX(ftot_pd(ji,jj), rsmall) |
---|
224 | ENDIF |
---|
225 | IF( med_diag%PD_SILIM%dgsave ) THEN |
---|
226 | fsld2d2(ji,jj) = fsld2d2(ji,jj) / MAX(ftot_pd(ji,jj), rsmall) |
---|
227 | ENDIF |
---|
228 | IF( med_diag%PDSILIM2%dgsave ) THEN |
---|
229 | fsld2d(ji,jj) = fsld2d(ji,jj) / MAX(ftot_pd(ji,jj), rsmall) |
---|
230 | ENDIF |
---|
231 | ENDDO |
---|
232 | ENDDO |
---|
233 | !!---------------------------------------------------------------- |
---|
234 | !! Add in XML diagnostics stuff |
---|
235 | !!---------------------------------------------------------------- |
---|
236 | !! |
---|
237 | !! ** 2D diagnostics |
---|
238 | # if defined key_debug_medusa |
---|
239 | IF (lwp) write (numout,*) 'bio_medusa_fin: export all diag kt = ', kt |
---|
240 | CALL flush(numout) |
---|
241 | # endif |
---|
242 | IF ( med_diag%INVTN%dgsave ) THEN |
---|
243 | CALL iom_put( "INVTN" , ftot_n ) |
---|
244 | ENDIF |
---|
245 | IF ( med_diag%INVTSI%dgsave ) THEN |
---|
246 | CALL iom_put( "INVTSI" , ftot_si ) |
---|
247 | ENDIF |
---|
248 | IF ( med_diag%INVTFE%dgsave ) THEN |
---|
249 | CALL iom_put( "INVTFE" , ftot_fe ) |
---|
250 | ENDIF |
---|
251 | IF ( med_diag%ML_PRN%dgsave ) THEN |
---|
252 | CALL iom_put( "ML_PRN" , fprn_ml ) |
---|
253 | ENDIF |
---|
254 | IF ( med_diag%ML_PRD%dgsave ) THEN |
---|
255 | CALL iom_put( "ML_PRD" , fprd_ml ) |
---|
256 | ENDIF |
---|
257 | IF ( med_diag%OCAL_LVL%dgsave ) THEN |
---|
258 | CALL iom_put( "OCAL_LVL" , fccd ) |
---|
259 | ENDIF |
---|
260 | IF ( med_diag%CHL_MLD%dgsave ) THEN |
---|
261 | CALL iom_put( "CHL_MLD" , fchl_ml ) |
---|
262 | ENDIF |
---|
263 | IF ( med_diag%PN_JLIM%dgsave ) THEN |
---|
264 | CALL iom_put( "PN_JLIM" , fjln2d ) |
---|
265 | DEALLOCATE( fjln2d ) |
---|
266 | ENDIF |
---|
267 | IF ( med_diag%PN_NLIM%dgsave ) THEN |
---|
268 | CALL iom_put( "PN_NLIM" , fnln2d ) |
---|
269 | DEALLOCATE( fnln2d ) |
---|
270 | ENDIF |
---|
271 | IF ( med_diag%PN_FELIM%dgsave ) THEN |
---|
272 | CALL iom_put( "PN_FELIM" , ffln2d ) |
---|
273 | DEALLOCATE( ffln2d ) |
---|
274 | ENDIF |
---|
275 | IF ( med_diag%PD_JLIM%dgsave ) THEN |
---|
276 | CALL iom_put( "PD_JLIM" , fjld2d ) |
---|
277 | DEALLOCATE( fjld2d ) |
---|
278 | ENDIF |
---|
279 | IF ( med_diag%PD_NLIM%dgsave ) THEN |
---|
280 | CALL iom_put( "PD_NLIM" , fnld2d ) |
---|
281 | DEALLOCATE( fnld2d ) |
---|
282 | ENDIF |
---|
283 | IF ( med_diag%PD_FELIM%dgsave ) THEN |
---|
284 | CALL iom_put( "PD_FELIM" , ffld2d ) |
---|
285 | DEALLOCATE( ffld2d ) |
---|
286 | ENDIF |
---|
287 | IF ( med_diag%PD_SILIM%dgsave ) THEN |
---|
288 | CALL iom_put( "PD_SILIM" , fsld2d2 ) |
---|
289 | DEALLOCATE( fsld2d2 ) |
---|
290 | ENDIF |
---|
291 | IF ( med_diag%PDSILIM2%dgsave ) THEN |
---|
292 | CALL iom_put( "PDSILIM2" , fsld2d ) |
---|
293 | DEALLOCATE( fsld2d ) |
---|
294 | ENDIF |
---|
295 | IF ( med_diag%INTFLX_N%dgsave ) THEN |
---|
296 | CALL iom_put( "INTFLX_N" , fflx_n ) |
---|
297 | ENDIF |
---|
298 | IF ( med_diag%INTFLX_SI%dgsave ) THEN |
---|
299 | CALL iom_put( "INTFLX_SI" , fflx_si ) |
---|
300 | ENDIF |
---|
301 | IF ( med_diag%INTFLX_FE%dgsave ) THEN |
---|
302 | CALL iom_put( "INTFLX_FE" , fflx_fe ) |
---|
303 | ENDIF |
---|
304 | IF ( med_diag%INT_PN%dgsave ) THEN |
---|
305 | CALL iom_put( "INT_PN" , ftot_pn ) |
---|
306 | ENDIF |
---|
307 | IF ( med_diag%INT_PD%dgsave ) THEN |
---|
308 | CALL iom_put( "INT_PD" , ftot_pd ) |
---|
309 | ENDIF |
---|
310 | IF ( med_diag%INT_ZMI%dgsave ) THEN |
---|
311 | CALL iom_put( "INT_ZMI" , ftot_zmi ) |
---|
312 | ENDIF |
---|
313 | IF ( med_diag%INT_ZME%dgsave ) THEN |
---|
314 | CALL iom_put( "INT_ZME" , ftot_zme ) |
---|
315 | ENDIF |
---|
316 | IF ( med_diag%INT_DET%dgsave ) THEN |
---|
317 | CALL iom_put( "INT_DET" , ftot_det ) |
---|
318 | ENDIF |
---|
319 | IF ( med_diag%INT_DTC%dgsave ) THEN |
---|
320 | CALL iom_put( "INT_DTC" , ftot_dtc ) |
---|
321 | ENDIF |
---|
322 | IF ( med_diag%BEN_N%dgsave ) THEN |
---|
323 | CALL iom_put( "BEN_N" , za_sed_n ) |
---|
324 | ENDIF |
---|
325 | IF ( med_diag%BEN_FE%dgsave ) THEN |
---|
326 | CALL iom_put( "BEN_FE" , za_sed_fe ) |
---|
327 | ENDIF |
---|
328 | IF ( med_diag%BEN_C%dgsave ) THEN |
---|
329 | CALL iom_put( "BEN_C" , za_sed_c ) |
---|
330 | ENDIF |
---|
331 | IF ( med_diag%BEN_SI%dgsave ) THEN |
---|
332 | CALL iom_put( "BEN_SI" , za_sed_si ) |
---|
333 | ENDIF |
---|
334 | IF ( med_diag%BEN_CA%dgsave ) THEN |
---|
335 | CALL iom_put( "BEN_CA" , za_sed_ca ) |
---|
336 | ENDIF |
---|
337 | IF ( med_diag%RUNOFF%dgsave ) THEN |
---|
338 | CALL iom_put( "RUNOFF" , f_runoff ) |
---|
339 | ENDIF |
---|
340 | # if defined key_roam |
---|
341 | IF ( med_diag%N_PROD%dgsave ) THEN |
---|
342 | CALL iom_put( "N_PROD" , fnit_prod ) |
---|
343 | ENDIF |
---|
344 | IF ( med_diag%N_CONS%dgsave ) THEN |
---|
345 | CALL iom_put( "N_CONS" , fnit_cons ) |
---|
346 | ENDIF |
---|
347 | IF ( med_diag%C_PROD%dgsave ) THEN |
---|
348 | CALL iom_put( "C_PROD" , fcar_prod ) |
---|
349 | ENDIF |
---|
350 | IF ( med_diag%C_CONS%dgsave ) THEN |
---|
351 | CALL iom_put( "C_CONS" , fcar_cons ) |
---|
352 | ENDIF |
---|
353 | IF ( med_diag%O2_PROD%dgsave ) THEN |
---|
354 | CALL iom_put( "O2_PROD" , foxy_prod ) |
---|
355 | ENDIF |
---|
356 | IF ( med_diag%O2_CONS%dgsave ) THEN |
---|
357 | CALL iom_put( "O2_CONS" , foxy_cons ) |
---|
358 | ENDIF |
---|
359 | IF ( med_diag%O2_ANOX%dgsave ) THEN |
---|
360 | CALL iom_put( "O2_ANOX" , foxy_anox ) |
---|
361 | ENDIF |
---|
362 | IF ( med_diag%INVTC%dgsave ) THEN |
---|
363 | CALL iom_put( "INVTC" , ftot_c ) |
---|
364 | ENDIF |
---|
365 | IF ( med_diag%INVTALK%dgsave ) THEN |
---|
366 | CALL iom_put( "INVTALK" , ftot_a ) |
---|
367 | ENDIF |
---|
368 | IF ( med_diag%INVTO2%dgsave ) THEN |
---|
369 | CALL iom_put( "INVTO2" , ftot_o2 ) |
---|
370 | ENDIF |
---|
371 | IF ( med_diag%COM_RESP%dgsave ) THEN |
---|
372 | CALL iom_put( "COM_RESP" , fcomm_resp ) |
---|
373 | ENDIF |
---|
374 | # endif |
---|
375 | !! |
---|
376 | !! diagnostic filled in the i-j-k main loop |
---|
377 | !!-------------------------------------------- |
---|
378 | IF ( med_diag%PRN%dgsave ) THEN |
---|
379 | CALL iom_put( "PRN" , fprn2d ) |
---|
380 | DEALLOCATE( fprn2d ) |
---|
381 | ENDIF |
---|
382 | IF ( med_diag%MPN%dgsave ) THEN |
---|
383 | CALL iom_put( "MPN" ,fdpn2d ) |
---|
384 | DEALLOCATE( fdpn2d ) |
---|
385 | ENDIF |
---|
386 | IF ( med_diag%PRD%dgsave ) THEN |
---|
387 | CALL iom_put( "PRD" ,fprd2d ) |
---|
388 | DEALLOCATE( fprd2d ) |
---|
389 | ENDIF |
---|
390 | IF( med_diag%MPD%dgsave ) THEN |
---|
391 | CALL iom_put( "MPD" , fdpd2d ) |
---|
392 | DEALLOCATE( fdpd2d ) |
---|
393 | ENDIF |
---|
394 | ! IF( med_diag%DSED%dgsave ) THEN |
---|
395 | ! CALL iom_put( "DSED" , ftot_n ) |
---|
396 | ! ENDIF |
---|
397 | IF( med_diag%OPAL%dgsave ) THEN |
---|
398 | CALL iom_put( "OPAL" , fprds2d ) |
---|
399 | DEALLOCATE( fprds2d ) |
---|
400 | ENDIF |
---|
401 | IF( med_diag%OPALDISS%dgsave ) THEN |
---|
402 | CALL iom_put( "OPALDISS" , fsdiss2d ) |
---|
403 | DEALLOCATE( fsdiss2d ) |
---|
404 | ENDIF |
---|
405 | IF( med_diag%GMIPn%dgsave ) THEN |
---|
406 | CALL iom_put( "GMIPn" , fgmipn2d ) |
---|
407 | DEALLOCATE( fgmipn2d ) |
---|
408 | ENDIF |
---|
409 | IF( med_diag%GMID%dgsave ) THEN |
---|
410 | CALL iom_put( "GMID" , fgmid2d ) |
---|
411 | DEALLOCATE( fgmid2d ) |
---|
412 | ENDIF |
---|
413 | IF( med_diag%MZMI%dgsave ) THEN |
---|
414 | CALL iom_put( "MZMI" , fdzmi2d ) |
---|
415 | DEALLOCATE( fdzmi2d ) |
---|
416 | ENDIF |
---|
417 | IF( med_diag%GMEPN%dgsave ) THEN |
---|
418 | CALL iom_put( "GMEPN" , fgmepn2d ) |
---|
419 | DEALLOCATE( fgmepn2d ) |
---|
420 | ENDIF |
---|
421 | IF( med_diag%GMEPD%dgsave ) THEN |
---|
422 | CALL iom_put( "GMEPD" , fgmepd2d ) |
---|
423 | DEALLOCATE( fgmepd2d ) |
---|
424 | ENDIF |
---|
425 | IF( med_diag%GMEZMI%dgsave ) THEN |
---|
426 | CALL iom_put( "GMEZMI" , fgmezmi2d ) |
---|
427 | DEALLOCATE( fgmezmi2d ) |
---|
428 | ENDIF |
---|
429 | IF( med_diag%GMED%dgsave ) THEN |
---|
430 | CALL iom_put( "GMED" , fgmed2d ) |
---|
431 | DEALLOCATE( fgmed2d ) |
---|
432 | ENDIF |
---|
433 | IF( med_diag%MZME%dgsave ) THEN |
---|
434 | CALL iom_put( "MZME" , fdzme2d ) |
---|
435 | DEALLOCATE( fdzme2d ) |
---|
436 | ENDIF |
---|
437 | ! IF( med_diag%DEXP%dgsave ) THEN |
---|
438 | ! CALL iom_put( "DEXP" , ftot_n ) |
---|
439 | ! ENDIF |
---|
440 | IF( med_diag%DETN%dgsave ) THEN |
---|
441 | CALL iom_put( "DETN" , fslown2d ) |
---|
442 | DEALLOCATE( fslown2d ) |
---|
443 | ENDIF |
---|
444 | IF( med_diag%MDET%dgsave ) THEN |
---|
445 | CALL iom_put( "MDET" , fdd2d ) |
---|
446 | DEALLOCATE( fdd2d ) |
---|
447 | ENDIF |
---|
448 | IF( med_diag%AEOLIAN%dgsave ) THEN |
---|
449 | CALL iom_put( "AEOLIAN" , ffetop2d ) |
---|
450 | DEALLOCATE( ffetop2d ) |
---|
451 | ENDIF |
---|
452 | IF( med_diag%BENTHIC%dgsave ) THEN |
---|
453 | CALL iom_put( "BENTHIC" , ffebot2d ) |
---|
454 | DEALLOCATE( ffebot2d ) |
---|
455 | ENDIF |
---|
456 | IF( med_diag%SCAVENGE%dgsave ) THEN |
---|
457 | CALL iom_put( "SCAVENGE" , ffescav2d ) |
---|
458 | DEALLOCATE( ffescav2d ) |
---|
459 | ENDIF |
---|
460 | !! |
---|
461 | IF( med_diag%TOTREG_N%dgsave ) THEN |
---|
462 | CALL iom_put( "TOTREG_N" , fregen2d ) |
---|
463 | DEALLOCATE( fregen2d ) |
---|
464 | ENDIF |
---|
465 | IF( med_diag%TOTRG_SI%dgsave ) THEN |
---|
466 | CALL iom_put( "TOTRG_SI" , fregensi2d ) |
---|
467 | DEALLOCATE( fregensi2d ) |
---|
468 | ENDIF |
---|
469 | !! |
---|
470 | IF( med_diag%FASTN%dgsave ) THEN |
---|
471 | CALL iom_put( "FASTN" , ftempn2d ) |
---|
472 | DEALLOCATE( ftempn2d ) |
---|
473 | ENDIF |
---|
474 | IF( med_diag%FASTSI%dgsave ) THEN |
---|
475 | CALL iom_put( "FASTSI" , ftempsi2d ) |
---|
476 | DEALLOCATE( ftempsi2d ) |
---|
477 | ENDIF |
---|
478 | IF( med_diag%FASTFE%dgsave ) THEN |
---|
479 | CALL iom_put( "FASTFE" , ftempfe2d ) |
---|
480 | DEALLOCATE( ftempfe2d ) |
---|
481 | ENDIF |
---|
482 | IF( med_diag%FASTC%dgsave ) THEN |
---|
483 | CALL iom_put( "FASTC" , ftempc2d ) |
---|
484 | DEALLOCATE( ftempc2d ) |
---|
485 | ENDIF |
---|
486 | IF( med_diag%FASTCA%dgsave ) THEN |
---|
487 | CALL iom_put( "FASTCA" , ftempca2d ) |
---|
488 | DEALLOCATE( ftempca2d ) |
---|
489 | ENDIF |
---|
490 | !! |
---|
491 | IF( med_diag%REMINN%dgsave ) THEN |
---|
492 | CALL iom_put( "REMINN" , freminn2d ) |
---|
493 | DEALLOCATE( freminn2d ) |
---|
494 | ENDIF |
---|
495 | IF( med_diag%REMINSI%dgsave ) THEN |
---|
496 | CALL iom_put( "REMINSI" , freminsi2d ) |
---|
497 | DEALLOCATE( freminsi2d ) |
---|
498 | ENDIF |
---|
499 | IF( med_diag%REMINFE%dgsave ) THEN |
---|
500 | CALL iom_put( "REMINFE" , freminfe2d ) |
---|
501 | DEALLOCATE( freminfe2d ) |
---|
502 | ENDIF |
---|
503 | IF( med_diag%REMINC%dgsave ) THEN |
---|
504 | CALL iom_put( "REMINC" , freminc2d ) |
---|
505 | DEALLOCATE( freminc2d ) |
---|
506 | ENDIF |
---|
507 | IF( med_diag%REMINCA%dgsave ) THEN |
---|
508 | CALL iom_put( "REMINCA" , freminca2d ) |
---|
509 | DEALLOCATE( freminca2d ) |
---|
510 | ENDIF |
---|
511 | IF( med_diag%SEAFLRN%dgsave ) THEN |
---|
512 | CALL iom_put( "SEAFLRN" , fsedn ) |
---|
513 | ENDIF |
---|
514 | IF( med_diag%SEAFLRSI%dgsave ) THEN |
---|
515 | CALL iom_put( "SEAFLRSI" , fsedsi ) |
---|
516 | ENDIF |
---|
517 | IF( med_diag%SEAFLRFE%dgsave ) THEN |
---|
518 | CALL iom_put( "SEAFLRFE" , fsedfe ) |
---|
519 | ENDIF |
---|
520 | IF( med_diag%SEAFLRC%dgsave ) THEN |
---|
521 | CALL iom_put( "SEAFLRC" , fsedc ) |
---|
522 | ENDIF |
---|
523 | IF( med_diag%SEAFLRCA%dgsave ) THEN |
---|
524 | CALL iom_put( "SEAFLRCA" , fsedca ) |
---|
525 | ENDIF |
---|
526 | !! |
---|
527 | # if defined key_roam |
---|
528 | !! |
---|
529 | IF( med_diag%RIV_N%dgsave ) THEN |
---|
530 | CALL iom_put( "RIV_N" , rivn2d ) |
---|
531 | DEALLOCATE( rivn2d ) |
---|
532 | ENDIF |
---|
533 | IF( med_diag%RIV_SI%dgsave ) THEN |
---|
534 | CALL iom_put( "RIV_SI" , rivsi2d ) |
---|
535 | DEALLOCATE( rivsi2d ) |
---|
536 | ENDIF |
---|
537 | IF( med_diag%RIV_C%dgsave ) THEN |
---|
538 | CALL iom_put( "RIV_C" , rivc2d ) |
---|
539 | DEALLOCATE( rivc2d ) |
---|
540 | ENDIF |
---|
541 | IF( med_diag%RIV_ALK%dgsave ) THEN |
---|
542 | CALL iom_put( "RIV_ALK" , rivalk2d ) |
---|
543 | DEALLOCATE( rivalk2d ) |
---|
544 | ENDIF |
---|
545 | IF( med_diag%DETC%dgsave ) THEN |
---|
546 | CALL iom_put( "DETC" , fslowc2d ) |
---|
547 | DEALLOCATE( fslowc2d ) |
---|
548 | ENDIF |
---|
549 | !! |
---|
550 | IF( med_diag%PN_LLOSS%dgsave ) THEN |
---|
551 | CALL iom_put( "PN_LLOSS" , fdpn22d ) |
---|
552 | DEALLOCATE( fdpn22d ) |
---|
553 | ENDIF |
---|
554 | IF( med_diag%PD_LLOSS%dgsave ) THEN |
---|
555 | CALL iom_put( "PD_LLOSS" , fdpd22d ) |
---|
556 | DEALLOCATE( fdpd22d ) |
---|
557 | ENDIF |
---|
558 | IF( med_diag%ZI_LLOSS%dgsave ) THEN |
---|
559 | CALL iom_put( "ZI_LLOSS" , fdzmi22d ) |
---|
560 | DEALLOCATE( fdzmi22d ) |
---|
561 | ENDIF |
---|
562 | IF( med_diag%ZE_LLOSS%dgsave ) THEN |
---|
563 | CALL iom_put( "ZE_LLOSS" , fdzme22d ) |
---|
564 | DEALLOCATE( fdzme22d ) |
---|
565 | ENDIF |
---|
566 | IF( med_diag%ZI_MES_N%dgsave ) THEN |
---|
567 | CALL iom_put( "ZI_MES_N" , zimesn2d ) |
---|
568 | DEALLOCATE( zimesn2d ) |
---|
569 | ENDIF |
---|
570 | IF( med_diag%ZI_MES_D%dgsave ) THEN |
---|
571 | CALL iom_put( "ZI_MES_D" , zimesd2d ) |
---|
572 | DEALLOCATE( zimesd2d ) |
---|
573 | ENDIF |
---|
574 | IF( med_diag%ZI_MES_C%dgsave ) THEN |
---|
575 | CALL iom_put( "ZI_MES_C" , zimesc2d ) |
---|
576 | DEALLOCATE( zimesc2d ) |
---|
577 | ENDIF |
---|
578 | IF( med_diag%ZI_MESDC%dgsave ) THEN |
---|
579 | CALL iom_put( "ZI_MESDC" ,zimesdc2d ) |
---|
580 | DEALLOCATE( zimesdc2d ) |
---|
581 | ENDIF |
---|
582 | IF( med_diag%ZI_EXCR%dgsave ) THEN |
---|
583 | CALL iom_put( "ZI_EXCR" , ziexcr2d ) |
---|
584 | DEALLOCATE( ziexcr2d ) |
---|
585 | ENDIF |
---|
586 | IF( med_diag%ZI_RESP%dgsave ) THEN |
---|
587 | CALL iom_put( "ZI_RESP" , ziresp2d ) |
---|
588 | DEALLOCATE( ziresp2d ) |
---|
589 | ENDIF |
---|
590 | IF( med_diag%ZI_GROW%dgsave ) THEN |
---|
591 | CALL iom_put( "ZI_GROW" , zigrow2d ) |
---|
592 | DEALLOCATE( zigrow2d ) |
---|
593 | ENDIF |
---|
594 | IF( med_diag%ZE_MES_N%dgsave ) THEN |
---|
595 | CALL iom_put( "ZE_MES_N" , zemesn2d ) |
---|
596 | DEALLOCATE( zemesn2d ) |
---|
597 | ENDIF |
---|
598 | IF( med_diag%ZE_MES_D%dgsave ) THEN |
---|
599 | CALL iom_put( "ZE_MES_D" , zemesd2d ) |
---|
600 | DEALLOCATE( zemesd2d ) |
---|
601 | ENDIF |
---|
602 | IF( med_diag%ZE_MES_C%dgsave ) THEN |
---|
603 | CALL iom_put( "ZE_MES_C" , zemesc2d ) |
---|
604 | DEALLOCATE( zemesc2d ) |
---|
605 | ENDIF |
---|
606 | IF( med_diag%ZE_MESDC%dgsave ) THEN |
---|
607 | CALL iom_put( "ZE_MESDC" , zemesdc2d ) |
---|
608 | DEALLOCATE( zemesdc2d ) |
---|
609 | ENDIF |
---|
610 | IF( med_diag%ZE_EXCR%dgsave ) THEN |
---|
611 | CALL iom_put( "ZE_EXCR" , zeexcr2d ) |
---|
612 | DEALLOCATE( zeexcr2d ) |
---|
613 | ENDIF |
---|
614 | IF( med_diag%ZE_RESP%dgsave ) THEN |
---|
615 | CALL iom_put( "ZE_RESP" , zeresp2d ) |
---|
616 | DEALLOCATE( zeresp2d ) |
---|
617 | ENDIF |
---|
618 | IF( med_diag%ZE_GROW%dgsave ) THEN |
---|
619 | CALL iom_put( "ZE_GROW" , zegrow2d ) |
---|
620 | DEALLOCATE( zegrow2d ) |
---|
621 | ENDIF |
---|
622 | IF( med_diag%MDETC%dgsave ) THEN |
---|
623 | CALL iom_put( "MDETC" , mdetc2d ) |
---|
624 | DEALLOCATE( mdetc2d ) |
---|
625 | ENDIF |
---|
626 | IF( med_diag%GMIDC%dgsave ) THEN |
---|
627 | CALL iom_put( "GMIDC" , gmidc2d ) |
---|
628 | DEALLOCATE( gmidc2d ) |
---|
629 | ENDIF |
---|
630 | IF( med_diag%GMEDC%dgsave ) THEN |
---|
631 | CALL iom_put( "GMEDC" , gmedc2d ) |
---|
632 | DEALLOCATE( gmedc2d ) |
---|
633 | ENDIF |
---|
634 | IF( med_diag%IBEN_N%dgsave ) THEN |
---|
635 | CALL iom_put( "IBEN_N" , iben_n2d ) |
---|
636 | DEALLOCATE( iben_n2d ) |
---|
637 | ENDIF |
---|
638 | IF( med_diag%IBEN_FE%dgsave ) THEN |
---|
639 | CALL iom_put( "IBEN_FE" , iben_fe2d ) |
---|
640 | DEALLOCATE( iben_fe2d ) |
---|
641 | ENDIF |
---|
642 | IF( med_diag%IBEN_C%dgsave ) THEN |
---|
643 | CALL iom_put( "IBEN_C" , iben_c2d ) |
---|
644 | DEALLOCATE( iben_c2d ) |
---|
645 | ENDIF |
---|
646 | IF( med_diag%IBEN_SI%dgsave ) THEN |
---|
647 | CALL iom_put( "IBEN_SI" , iben_si2d ) |
---|
648 | DEALLOCATE( iben_si2d ) |
---|
649 | ENDIF |
---|
650 | IF( med_diag%IBEN_CA%dgsave ) THEN |
---|
651 | CALL iom_put( "IBEN_CA" , iben_ca2d ) |
---|
652 | DEALLOCATE( iben_ca2d ) |
---|
653 | ENDIF |
---|
654 | IF( med_diag%OBEN_N%dgsave ) THEN |
---|
655 | CALL iom_put( "OBEN_N" , oben_n2d ) |
---|
656 | DEALLOCATE( oben_n2d ) |
---|
657 | ENDIF |
---|
658 | IF( med_diag%OBEN_FE%dgsave ) THEN |
---|
659 | CALL iom_put( "OBEN_FE" , oben_fe2d ) |
---|
660 | DEALLOCATE( oben_fe2d ) |
---|
661 | ENDIF |
---|
662 | IF( med_diag%OBEN_C%dgsave ) THEN |
---|
663 | CALL iom_put( "OBEN_C" , oben_c2d ) |
---|
664 | DEALLOCATE( oben_c2d ) |
---|
665 | ENDIF |
---|
666 | IF( med_diag%OBEN_SI%dgsave ) THEN |
---|
667 | CALL iom_put( "OBEN_SI" , oben_si2d ) |
---|
668 | DEALLOCATE( oben_si2d ) |
---|
669 | ENDIF |
---|
670 | IF( med_diag%OBEN_CA%dgsave ) THEN |
---|
671 | CALL iom_put( "OBEN_CA" , oben_ca2d ) |
---|
672 | DEALLOCATE( oben_ca2d ) |
---|
673 | ENDIF |
---|
674 | IF( med_diag%SFR_OCAL%dgsave ) THEN |
---|
675 | CALL iom_put( "SFR_OCAL" , sfr_ocal2d ) |
---|
676 | DEALLOCATE( sfr_ocal2d ) |
---|
677 | ENDIF |
---|
678 | IF( med_diag%SFR_OARG%dgsave ) THEN |
---|
679 | CALL iom_put( "SFR_OARG" , sfr_oarg2d ) |
---|
680 | DEALLOCATE( sfr_oarg2d ) |
---|
681 | ENDIF |
---|
682 | IF( med_diag%LYSO_CA%dgsave ) THEN |
---|
683 | CALL iom_put( "LYSO_CA" , lyso_ca2d ) |
---|
684 | DEALLOCATE( lyso_ca2d ) |
---|
685 | ENDIF |
---|
686 | # endif |
---|
687 | !! |
---|
688 | !! ** 3D diagnostics |
---|
689 | IF( med_diag%TPP3%dgsave ) THEN |
---|
690 | CALL iom_put( "TPP3" , tpp3d ) |
---|
691 | DEALLOCATE( tpp3d ) |
---|
692 | ENDIF |
---|
693 | IF( med_diag%DETFLUX3%dgsave ) THEN |
---|
694 | CALL iom_put( "DETFLUX3" , detflux3d ) |
---|
695 | DEALLOCATE( detflux3d ) |
---|
696 | ENDIF |
---|
697 | IF( med_diag%REMIN3N%dgsave ) THEN |
---|
698 | CALL iom_put( "REMIN3N" , remin3dn ) |
---|
699 | DEALLOCATE( remin3dn ) |
---|
700 | ENDIF |
---|
701 | # if defined key_roam |
---|
702 | IF( med_diag%PH3%dgsave ) THEN |
---|
703 | CALL iom_put( "PH3" , f3_pH ) |
---|
704 | ENDIF |
---|
705 | IF( med_diag%OM_CAL3%dgsave ) THEN |
---|
706 | CALL iom_put( "OM_CAL3" , f3_omcal ) |
---|
707 | ENDIF |
---|
708 | !! |
---|
709 | !! AXY (09/11/16): 2D CMIP6 diagnostics |
---|
710 | IF( med_diag%INTDISSIC%dgsave ) THEN |
---|
711 | CALL iom_put( "INTDISSIC" , intdissic ) |
---|
712 | DEALLOCATE( intdissic ) |
---|
713 | ENDIF |
---|
714 | IF( med_diag%INTDISSIN%dgsave ) THEN |
---|
715 | CALL iom_put( "INTDISSIN" , intdissin ) |
---|
716 | DEALLOCATE( intdissin ) |
---|
717 | ENDIF |
---|
718 | IF( med_diag%INTDISSISI%dgsave ) THEN |
---|
719 | CALL iom_put( "INTDISSISI" , intdissisi ) |
---|
720 | DEALLOCATE( intdissisi ) |
---|
721 | ENDIF |
---|
722 | IF( med_diag%INTTALK%dgsave ) THEN |
---|
723 | CALL iom_put( "INTTALK" , inttalk ) |
---|
724 | DEALLOCATE( inttalk ) |
---|
725 | ENDIF |
---|
726 | IF( med_diag%O2min%dgsave ) THEN |
---|
727 | CALL iom_put( "O2min" , o2min ) |
---|
728 | DEALLOCATE( o2min ) |
---|
729 | ENDIF |
---|
730 | IF( med_diag%ZO2min%dgsave ) THEN |
---|
731 | CALL iom_put( "ZO2min" , zo2min ) |
---|
732 | DEALLOCATE( zo2min ) |
---|
733 | ENDIF |
---|
734 | IF( med_diag%FBDDTALK%dgsave ) THEN |
---|
735 | CALL iom_put( "FBDDTALK" , fbddtalk ) |
---|
736 | DEALLOCATE( fbddtalk ) |
---|
737 | ENDIF |
---|
738 | IF( med_diag%FBDDTDIC%dgsave ) THEN |
---|
739 | CALL iom_put( "FBDDTDIC" , fbddtdic ) |
---|
740 | DEALLOCATE( fbddtdic ) |
---|
741 | ENDIF |
---|
742 | IF( med_diag%FBDDTDIFE%dgsave ) THEN |
---|
743 | CALL iom_put( "FBDDTDIFE" , fbddtdife ) |
---|
744 | DEALLOCATE( fbddtdife ) |
---|
745 | ENDIF |
---|
746 | IF( med_diag%FBDDTDIN%dgsave ) THEN |
---|
747 | CALL iom_put( "FBDDTDIN" , fbddtdin ) |
---|
748 | DEALLOCATE( fbddtdin ) |
---|
749 | ENDIF |
---|
750 | IF( med_diag%FBDDTDISI%dgsave ) THEN |
---|
751 | CALL iom_put( "FBDDTDISI" , fbddtdisi ) |
---|
752 | DEALLOCATE( fbddtdisi ) |
---|
753 | ENDIF |
---|
754 | !! |
---|
755 | !! AXY (09/11/16): 3D CMIP6 diagnostics |
---|
756 | IF( med_diag%TPPD3%dgsave ) THEN |
---|
757 | CALL iom_put( "TPPD3" , tppd3 ) |
---|
758 | DEALLOCATE( tppd3 ) |
---|
759 | ENDIF |
---|
760 | IF( med_diag%BDDTALK3%dgsave ) THEN |
---|
761 | CALL iom_put( "BDDTALK3" , bddtalk3 ) |
---|
762 | DEALLOCATE( bddtalk3 ) |
---|
763 | ENDIF |
---|
764 | IF( med_diag%BDDTDIC3%dgsave ) THEN |
---|
765 | CALL iom_put( "BDDTDIC3" , bddtdic3 ) |
---|
766 | DEALLOCATE( bddtdic3 ) |
---|
767 | ENDIF |
---|
768 | IF( med_diag%BDDTDIFE3%dgsave ) THEN |
---|
769 | CALL iom_put( "BDDTDIFE3" , bddtdife3 ) |
---|
770 | DEALLOCATE( bddtdife3 ) |
---|
771 | ENDIF |
---|
772 | IF( med_diag%BDDTDIN3%dgsave ) THEN |
---|
773 | CALL iom_put( "BDDTDIN3" , bddtdin3 ) |
---|
774 | DEALLOCATE( bddtdin3 ) |
---|
775 | ENDIF |
---|
776 | IF( med_diag%BDDTDISI3%dgsave ) THEN |
---|
777 | CALL iom_put( "BDDTDISI3" , bddtdisi3 ) |
---|
778 | DEALLOCATE( bddtdisi3 ) |
---|
779 | ENDIF |
---|
780 | IF( med_diag%FD_NIT3%dgsave ) THEN |
---|
781 | CALL iom_put( "FD_NIT3" , fd_nit3 ) |
---|
782 | DEALLOCATE( fd_nit3 ) |
---|
783 | ENDIF |
---|
784 | IF( med_diag%FD_SIL3%dgsave ) THEN |
---|
785 | CALL iom_put( "FD_SIL3" , fd_sil3 ) |
---|
786 | DEALLOCATE( fd_sil3 ) |
---|
787 | ENDIF |
---|
788 | IF( med_diag%FD_CAL3%dgsave ) THEN |
---|
789 | CALL iom_put( "FD_CAL3" , fd_cal3 ) |
---|
790 | DEALLOCATE( fd_cal3 ) |
---|
791 | ENDIF |
---|
792 | IF( med_diag%FD_CAR3%dgsave ) THEN |
---|
793 | CALL iom_put( "FD_CAR3" , fd_car3 ) |
---|
794 | DEALLOCATE( fd_car3 ) |
---|
795 | ENDIF |
---|
796 | IF( med_diag%CO33%dgsave ) THEN |
---|
797 | CALL iom_put( "CO33" , f3_co3 ) |
---|
798 | ENDIF |
---|
799 | IF( med_diag%CO3SATARAG3%dgsave ) THEN |
---|
800 | CALL iom_put( "CO3SATARAG3" , f3_omarg ) |
---|
801 | ENDIF |
---|
802 | IF( med_diag%CO3SATCALC3%dgsave ) THEN |
---|
803 | CALL iom_put( "CO3SATCALC3" , f3_omcal ) |
---|
804 | ENDIF |
---|
805 | IF( med_diag%EXPC3%dgsave ) THEN |
---|
806 | CALL iom_put( "EXPC3" , expc3 ) |
---|
807 | DEALLOCATE( expc3 ) |
---|
808 | ENDIF |
---|
809 | IF( med_diag%EXPN3%dgsave ) THEN |
---|
810 | CALL iom_put( "EXPN3" , expn3 ) |
---|
811 | DEALLOCATE( expn3 ) |
---|
812 | ENDIF |
---|
813 | IF( med_diag%DCALC3%dgsave ) THEN |
---|
814 | CALL iom_put( "DCALC3" , dcalc3 ) |
---|
815 | DEALLOCATE( dcalc3 ) |
---|
816 | ENDIF |
---|
817 | IF( med_diag%FEDISS3%dgsave ) THEN |
---|
818 | CALL iom_put( "FEDISS3" , fediss3 ) |
---|
819 | DEALLOCATE( fediss3 ) |
---|
820 | ENDIF |
---|
821 | IF( med_diag%FESCAV3%dgsave ) THEN |
---|
822 | CALL iom_put( "FESCAV3" , fescav3 ) |
---|
823 | DEALLOCATE( fescav3 ) |
---|
824 | ENDIF |
---|
825 | IF( med_diag%MIGRAZP3%dgsave ) THEN |
---|
826 | CALL iom_put( "MIGRAZP3" , migrazp3 ) |
---|
827 | DEALLOCATE( migrazp3 ) |
---|
828 | ENDIF |
---|
829 | IF( med_diag%MIGRAZD3%dgsave ) THEN |
---|
830 | CALL iom_put( "MIGRAZD3" , migrazd3 ) |
---|
831 | DEALLOCATE( migrazd3 ) |
---|
832 | ENDIF |
---|
833 | IF( med_diag%MEGRAZP3%dgsave ) THEN |
---|
834 | CALL iom_put( "MEGRAZP3" , megrazp3 ) |
---|
835 | DEALLOCATE( megrazp3 ) |
---|
836 | ENDIF |
---|
837 | IF( med_diag%MEGRAZD3%dgsave ) THEN |
---|
838 | CALL iom_put( "MEGRAZD3" , megrazd3 ) |
---|
839 | DEALLOCATE( megrazd3 ) |
---|
840 | ENDIF |
---|
841 | IF( med_diag%MEGRAZZ3%dgsave ) THEN |
---|
842 | CALL iom_put( "MEGRAZZ3" , megrazz3 ) |
---|
843 | DEALLOCATE( megrazz3 ) |
---|
844 | ENDIF |
---|
845 | IF( med_diag%O2SAT3%dgsave ) THEN |
---|
846 | CALL iom_put( "O2SAT3" , o2sat3 ) |
---|
847 | DEALLOCATE( o2sat3 ) |
---|
848 | ENDIF |
---|
849 | IF( med_diag%PBSI3%dgsave ) THEN |
---|
850 | CALL iom_put( "PBSI3" , pbsi3 ) |
---|
851 | DEALLOCATE( pbsi3 ) |
---|
852 | ENDIF |
---|
853 | IF( med_diag%PCAL3%dgsave ) THEN |
---|
854 | CALL iom_put( "PCAL3" , pcal3 ) |
---|
855 | DEALLOCATE( pcal3 ) |
---|
856 | ENDIF |
---|
857 | IF( med_diag%REMOC3%dgsave ) THEN |
---|
858 | CALL iom_put( "REMOC3" , remoc3 ) |
---|
859 | DEALLOCATE( remoc3 ) |
---|
860 | ENDIF |
---|
861 | IF( med_diag%PNLIMJ3%dgsave ) THEN |
---|
862 | CALL iom_put( "PNLIMJ3" , pnlimj3 ) |
---|
863 | DEALLOCATE( pnlimj3 ) |
---|
864 | ENDIF |
---|
865 | IF( med_diag%PNLIMN3%dgsave ) THEN |
---|
866 | CALL iom_put( "PNLIMN3" , pnlimn3 ) |
---|
867 | DEALLOCATE( pnlimn3 ) |
---|
868 | ENDIF |
---|
869 | IF( med_diag%PNLIMFE3%dgsave ) THEN |
---|
870 | CALL iom_put( "PNLIMFE3" , pnlimfe3 ) |
---|
871 | DEALLOCATE( pnlimfe3 ) |
---|
872 | ENDIF |
---|
873 | IF( med_diag%PDLIMJ3%dgsave ) THEN |
---|
874 | CALL iom_put( "PDLIMJ3" , pdlimj3 ) |
---|
875 | DEALLOCATE( pdlimj3 ) |
---|
876 | ENDIF |
---|
877 | IF( med_diag%PDLIMN3%dgsave ) THEN |
---|
878 | CALL iom_put( "PDLIMN3" , pdlimn3 ) |
---|
879 | DEALLOCATE( pdlimn3 ) |
---|
880 | ENDIF |
---|
881 | IF( med_diag%PDLIMFE3%dgsave ) THEN |
---|
882 | CALL iom_put( "PDLIMFE3" , pdlimfe3 ) |
---|
883 | DEALLOCATE( pdlimfe3 ) |
---|
884 | ENDIF |
---|
885 | IF( med_diag%PDLIMSI3%dgsave ) THEN |
---|
886 | CALL iom_put( "PDLIMSI3" , pdlimsi3 ) |
---|
887 | DEALLOCATE( pdlimsi3 ) |
---|
888 | ENDIF |
---|
889 | |
---|
890 | # endif |
---|
891 | |
---|
892 | DEALLOCATE( zw2d ) |
---|
893 | |
---|
894 | END SUBROUTINE bio_medusa_fin |
---|
895 | |
---|
896 | #else |
---|
897 | !!====================================================================== |
---|
898 | !! Dummy module : No MEDUSA bio-model |
---|
899 | !!====================================================================== |
---|
900 | CONTAINS |
---|
901 | SUBROUTINE bio_medusa_fin( ) ! Empty routine |
---|
902 | WRITE(*,*) 'bio_medusa_fin: You should not have seen this print! error?' |
---|
903 | END SUBROUTINE bio_medusa_fin |
---|
904 | #endif |
---|
905 | |
---|
906 | !!====================================================================== |
---|
907 | END MODULE bio_medusa_fin_mod |
---|