Changeset 8419 for branches/NERC/dev_r5518_GO6_split_trcbiomedusa/NEMOGCM/NEMO/TOP_SRC/MEDUSA/bio_medusa_fin.F90
- Timestamp:
- 2017-08-08T14:11:22+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NERC/dev_r5518_GO6_split_trcbiomedusa/NEMOGCM/NEMO/TOP_SRC/MEDUSA/bio_medusa_fin.F90
r8395 r8419 32 32 !!---------------------------------------------------------------------- 33 33 USE bio_medusa_mod 34 USE dom_oce, ONLY: atfp, atfp1, neuler, rdt , e3t_n, tmask34 USE dom_oce, ONLY: atfp, atfp1, neuler, rdt 35 35 USE in_out_manager, ONLY: lwp, numout 36 36 # if defined key_iomput … … 61 61 INTEGER :: ji, jj 62 62 INTEGER :: jn 63 64 REAL(wp) :: fq0,fq1,fq2,fq365 66 63 !!---------------------------------------------------------------------- 67 64 !! Process benthic in/out fluxes … … 238 235 ENDIF 239 236 endif 240 241 # if defined key_debug_medusa242 !! AXY (12/07/17)243 !!-----------------------------------------------------------------244 !! Check conservation of MEDUSA's sinks-minus-sources using fflx_X245 !! diagnostics (i.e. biogeochemical processes only)246 !! - fflx_X diagnostics *should* include all transfers between247 !! modelled components248 !! - they should also include gains / losses due to air-sea249 !! fluxes of C and O2, aeolian and seafloor inputs of Fe, and250 !! inputs from seafloor "benthic buckets" (N, Si, Fe, C and251 !! alkalinity)252 !! - however, they do not include the transfer of material to253 !! "benthic buckets" by sedimenting slow- and fast-sinking254 !! detritus since these are separate 2D reservoirs255 !! - consequently, for a given water column, the integrated256 !! fluxes should sum to the "loss" of material to the "benthic257 !! buckets"258 !! - if they do not, this suggests that MEDUSA contains errors259 !! in its accounting (e.g. processes omitted from calculated260 !! fluxes)261 !! - here, the local integrated fluxes and benthic inputs (plus262 !! air-sea fluxes in the case of C) are reported together with263 !! the resulting error264 !! - only N, Si, C and alkalinity inventories considered; Fe and265 !! O2 overlooked because of wholesale loss (and addition, in266 !! the case of O2) of these tracers within the water column267 !!-----------------------------------------------------------------268 !!269 !! nitrogen270 DO jj = 2,jpjm1271 DO ji = 2,jpim1272 if (tmask(ji,jj,1) == 1) then273 fq0 = fflx_n(ji,jj)274 fq1 = f_sbenin_n(ji,jj) + f_fbenin_n(ji,jj)275 fq2 = fq0 + fq1276 IF (lwp) write (numout,'(a,2i3,a,3f15.10)') &277 'AXY N cons: (i,j)=',ji,jj,', (flx,ben,err)=', &278 fq0,fq1,fq2279 ENDIF280 ENDDO281 ENDDO282 !! silicon283 DO jj = 2,jpjm1284 DO ji = 2,jpim1285 if (tmask(ji,jj,1) == 1) then286 fq0 = fflx_si(ji,jj)287 fq1 = f_fbenin_si(ji,jj)288 fq2 = fq0 + fq1289 IF (lwp) write (numout,'(a,2i3,a,3f15.10)') &290 'AXY Si cons: (i,j)=',ji,jj,', (flx,ben,err)=', &291 fq0,fq1,fq2292 ENDIF293 ENDDO294 ENDDO295 !! carbon296 DO jj = 2,jpjm1297 DO ji = 2,jpim1298 if (tmask(ji,jj,1) == 1) then299 fq0 = fflx_c(ji,jj)300 fq1 = f_sbenin_c(ji,jj) + f_fbenin_c(ji,jj) + f_fbenin_ca(ji,jj)301 fq2 = f_co2flux(ji,jj) * e3t_n(ji,jj,1)302 fq3 = fq0 + fq1303 IF (lwp) write (numout,'(a,2i3,a,4f15.10)') &304 'AXY C cons: (i,j)=',ji,jj,', (flx,ben,asf,err)=', &305 fq0,fq1,fq2,fq3306 ENDIF307 ENDDO308 ENDDO309 !! alkalinity310 DO jj = 2,jpjm1311 DO ji = 2,jpim1312 if (tmask(ji,jj,1) == 1) then313 fq0 = fflx_a(ji,jj)314 fq1 = 2.0 * f_fbenin_ca(ji,jj)315 fq2 = fq0 + fq1316 IF (lwp) write (numout,'(a,2i3,a,3f15.10)') &317 'AXY alk cons: (i,j)=',ji,jj,', (flx,ben,err)=', &318 fq0,fq1,fq2319 ENDIF320 ENDDO321 ENDDO322 # endif323 237 324 238 IF( ln_diatrc ) THEN
Note: See TracChangeset
for help on using the changeset viewer.