[3443] | 1 | MODULE p4zbio |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE p4zbio *** |
---|
| 4 | !! TOP : PISCES bio-model |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : 1.0 ! 2004 (O. Aumont) Original code |
---|
| 7 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) F90 |
---|
| 8 | !!---------------------------------------------------------------------- |
---|
| 9 | !! p4z_bio : computes the interactions between the different |
---|
| 10 | !! compartments of PISCES |
---|
| 11 | !!---------------------------------------------------------------------- |
---|
| 12 | USE oce_trc ! shared variables between ocean and passive tracers |
---|
| 13 | USE trc ! passive tracers common variables |
---|
| 14 | USE sms_pisces ! PISCES Source Minus Sink variables |
---|
| 15 | USE p4zsink ! vertical flux of particulate matter due to sinking |
---|
| 16 | USE p4zopt ! optical model |
---|
[10227] | 17 | USE p4zlim ! Co-limitations of differents nutrients |
---|
[3443] | 18 | USE p4zprod ! Growth rate of the 2 phyto groups |
---|
| 19 | USE p4zmort ! Mortality terms for phytoplankton |
---|
| 20 | USE p4zmicro ! Sources and sinks of microzooplankton |
---|
| 21 | USE p4zmeso ! Sources and sinks of mesozooplankton |
---|
[10227] | 22 | USE p5zlim ! Co-limitations of differents nutrients |
---|
[7646] | 23 | USE p5zprod ! Growth rate of the 2 phyto groups |
---|
| 24 | USE p5zmort ! Mortality terms for phytoplankton |
---|
| 25 | USE p5zmicro ! Sources and sinks of microzooplankton |
---|
| 26 | USE p5zmeso ! Sources and sinks of mesozooplankton |
---|
[3443] | 27 | USE p4zrem ! Remineralisation of organic matter |
---|
[7646] | 28 | USE p4zpoc ! Remineralization of organic particles |
---|
| 29 | USE p4zagg ! Aggregation of particles |
---|
[3443] | 30 | USE p4zfechem |
---|
[7646] | 31 | USE p4zligand ! Prognostic ligand model |
---|
[13899] | 32 | USE prtctl ! print control for debugging |
---|
[3443] | 33 | USE iom ! I/O manager |
---|
| 34 | |
---|
| 35 | IMPLICIT NONE |
---|
| 36 | PRIVATE |
---|
| 37 | |
---|
| 38 | PUBLIC p4z_bio |
---|
| 39 | |
---|
[12377] | 40 | !! * Substitutions |
---|
| 41 | # include "do_loop_substitute.h90" |
---|
[13237] | 42 | # include "domzgr_substitute.h90" |
---|
[3443] | 43 | !!---------------------------------------------------------------------- |
---|
[10067] | 44 | !! NEMO/TOP 4.0 , NEMO Consortium (2018) |
---|
[10069] | 45 | !! $Id$ |
---|
[10068] | 46 | !! Software governed by the CeCILL license (see ./LICENSE) |
---|
[3443] | 47 | !!---------------------------------------------------------------------- |
---|
| 48 | CONTAINS |
---|
| 49 | |
---|
[12377] | 50 | SUBROUTINE p4z_bio ( kt, knt, Kbb, Kmm, Krhs ) |
---|
[3443] | 51 | !!--------------------------------------------------------------------- |
---|
| 52 | !! *** ROUTINE p4z_bio *** |
---|
| 53 | !! |
---|
| 54 | !! ** Purpose : Ecosystem model in the whole ocean: computes the |
---|
| 55 | !! different interactions between the different compartments |
---|
| 56 | !! of PISCES |
---|
| 57 | !! |
---|
| 58 | !! ** Method : - ??? |
---|
| 59 | !!--------------------------------------------------------------------- |
---|
[5385] | 60 | INTEGER, INTENT(in) :: kt, knt |
---|
[12377] | 61 | INTEGER, INTENT(in) :: Kbb, Kmm, Krhs ! time level indices |
---|
[9124] | 62 | ! |
---|
[5385] | 63 | INTEGER :: ji, jj, jk, jn |
---|
[3443] | 64 | CHARACTER (len=25) :: charout |
---|
| 65 | !!--------------------------------------------------------------------- |
---|
| 66 | ! |
---|
[9124] | 67 | IF( ln_timing ) CALL timing_start('p4z_bio') |
---|
[3443] | 68 | ! |
---|
| 69 | ! ASSIGN THE SHEAR RATE THAT IS USED FOR AGGREGATION |
---|
| 70 | ! OF PHYTOPLANKTON AND DETRITUS |
---|
| 71 | |
---|
[7753] | 72 | xdiss(:,:,:) = 1. |
---|
[3443] | 73 | !!gm the use of nmld should be better here? |
---|
[13899] | 74 | DO_3D( 1, 1, 1, 1, 2, jpkm1 ) |
---|
[6140] | 75 | !!gm : use nmln and test on jk ... less memory acces |
---|
[12377] | 76 | IF( gdepw(ji,jj,jk+1,Kmm) > hmld(ji,jj) ) xdiss(ji,jj,jk) = 0.01 |
---|
| 77 | END_3D |
---|
[3443] | 78 | |
---|
[12377] | 79 | CALL p4z_opt ( kt, knt, Kbb, Kmm ) ! Optic: PAR in the water column |
---|
| 80 | CALL p4z_sink ( kt, knt, Kbb, Kmm, Krhs ) ! vertical flux of particulate organic matter |
---|
| 81 | CALL p4z_fechem ( kt, knt, Kbb, Kmm, Krhs ) ! Iron chemistry/scavenging |
---|
[7646] | 82 | ! |
---|
| 83 | IF( ln_p4z ) THEN |
---|
[12377] | 84 | CALL p4z_lim ( kt, knt, Kbb, Kmm ) ! co-limitations by the various nutrients |
---|
| 85 | CALL p4z_prod ( kt, knt, Kbb, Kmm, Krhs ) ! phytoplankton growth rate over the global ocean. |
---|
| 86 | ! ! (for each element : C, Si, Fe, Chl ) |
---|
| 87 | CALL p4z_mort ( kt, Kbb, Krhs ) ! phytoplankton mortality |
---|
| 88 | ! ! zooplankton sources/sinks routines |
---|
| 89 | CALL p4z_micro( kt, knt, Kbb, Krhs ) ! microzooplankton |
---|
| 90 | CALL p4z_meso ( kt, knt, Kbb, Krhs ) ! mesozooplankton |
---|
[7646] | 91 | ELSE |
---|
[12377] | 92 | CALL p5z_lim ( kt, knt, Kbb, Kmm ) ! co-limitations by the various nutrients |
---|
| 93 | CALL p5z_prod ( kt, knt, Kbb, Kmm, Krhs ) ! phytoplankton growth rate over the global ocean. |
---|
| 94 | ! ! (for each element : C, Si, Fe, Chl ) |
---|
| 95 | CALL p5z_mort ( kt, Kbb, Krhs ) ! phytoplankton mortality |
---|
| 96 | ! ! zooplankton sources/sinks routines |
---|
| 97 | CALL p5z_micro( kt, knt, Kbb, Krhs ) ! microzooplankton |
---|
| 98 | CALL p5z_meso ( kt, knt, Kbb, Krhs ) ! mesozooplankton |
---|
[7646] | 99 | ENDIF |
---|
| 100 | ! |
---|
[12377] | 101 | CALL p4z_agg ( kt, knt, Kbb, Krhs ) ! Aggregation of particles |
---|
| 102 | CALL p4z_rem ( kt, knt, Kbb, Kmm, Krhs ) ! remineralization terms of organic matter+scavenging of Fe |
---|
| 103 | CALL p4z_poc ( kt, knt, Kbb, Kmm, Krhs ) ! Remineralization of organic particles |
---|
[9751] | 104 | ! |
---|
| 105 | IF( ln_ligand ) & |
---|
[12377] | 106 | & CALL p4z_ligand( kt, knt, Kbb, Krhs ) |
---|
[5385] | 107 | ! ! |
---|
[12377] | 108 | IF(sn_cfctl%l_prttrc) THEN ! print mean trends (used for debugging) |
---|
[3443] | 109 | WRITE(charout, FMT="('bio ')") |
---|
[13899] | 110 | CALL prt_ctl_info( charout, cdcomp = 'top' ) |
---|
| 111 | CALL prt_ctl(tab4d_1=tr(:,:,:,:,Krhs), mask1=tmask, clinfo=ctrcnm) |
---|
[3443] | 112 | ENDIF |
---|
| 113 | ! |
---|
[9124] | 114 | IF( ln_timing ) CALL timing_stop('p4z_bio') |
---|
[3443] | 115 | ! |
---|
| 116 | END SUBROUTINE p4z_bio |
---|
| 117 | |
---|
| 118 | !!====================================================================== |
---|
[5656] | 119 | END MODULE p4zbio |
---|