New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
p4zbio.F90 in branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z – NEMO

source: branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zbio.F90 @ 7162

Last change on this file since 7162 was 7162, checked in by cetlod, 7 years ago

new top interface : Add PISCES quota model

File size: 5.6 KB
Line 
1MODULE 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
17   USE p4zlim          !  Co-limitations of differents nutrients
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
22   USE p5zlim          !  Co-limitations of differents nutrients
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
27   USE p5zagg          !  Aggregation of particles
28   USE p4zrem          !  Remineralisation of organic matter
29   USE p4zpoc          !  Remineralization of organic particles
30   USE p4zagg          !  Aggregation of particles
31   USE p4zfechem
32   USE p4zligand       !  Prognostic ligand model
33   USE prtctl_trc      !  print control for debugging
34   USE iom             !  I/O manager
35 
36   IMPLICIT NONE
37   PRIVATE
38
39   PUBLIC  p4z_bio   
40
41   !!----------------------------------------------------------------------
42   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
43   !! $Id: p4zbio.F90 3160 2011-11-20 14:27:18Z cetlod $
44   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
45   !!----------------------------------------------------------------------
46CONTAINS
47
48   SUBROUTINE p4z_bio ( kt, knt )
49      !!---------------------------------------------------------------------
50      !!                     ***  ROUTINE p4z_bio  ***
51      !!
52      !! ** Purpose :   Ecosystem model in the whole ocean: computes the
53      !!              different interactions between the different compartments
54      !!              of PISCES
55      !!
56      !! ** Method  : - ???
57      !!---------------------------------------------------------------------
58      INTEGER, INTENT(in) :: kt, knt
59      INTEGER             :: ji, jj, jk, jn
60      CHARACTER (len=25) :: charout
61
62      !!---------------------------------------------------------------------
63      !
64      IF( nn_timing == 1 )  CALL timing_start('p4z_bio')
65      !
66      !     ASSIGN THE SHEAR RATE THAT IS USED FOR AGGREGATION
67      !     OF PHYTOPLANKTON AND DETRITUS
68
69      xdiss(:,:,:) = 1.
70!!gm the use of nmld should be better here?
71      DO jk = 2, jpkm1
72         DO jj = 1, jpj
73            DO ji = 1, jpi
74!!gm  :  use nmln  and test on jk ...  less memory acces
75               IF( gdepw_n(ji,jj,jk+1) > hmld(ji,jj) )   xdiss(ji,jj,jk) = 0.01
76            END DO
77         END DO
78      END DO
79
80      CALL p4z_opt     ( kt, knt )     ! Optic: PAR in the water column
81      CALL p4z_sink    ( kt, knt )     ! vertical flux of particulate organic matter
82      CALL p4z_fechem  ( kt, knt )     ! Iron chemistry/scavenging
83      !
84      IF( ln_p4z ) THEN
85         CALL p4z_lim  ( kt, knt )     ! co-limitations by the various nutrients
86         CALL p4z_prod ( kt, knt )     ! phytoplankton growth rate over the global ocean.
87         !                             ! (for each element : C, Si, Fe, Chl )
88         CALL p4z_mort ( kt      )     ! phytoplankton mortality
89         !                             ! zooplankton sources/sinks routines
90         CALL p4z_micro( kt, knt )           ! microzooplankton
91         CALL p4z_meso ( kt, knt )           ! mesozooplankton
92         CALL p4z_agg  ( kt, knt )     ! Aggregation of particles
93      ELSE
94         CALL p5z_lim  ( kt, knt )     ! co-limitations by the various nutrients
95         CALL p5z_prod ( kt, knt )     ! phytoplankton growth rate over the global ocean.
96         !                             ! (for each element : C, Si, Fe, Chl )
97         CALL p5z_mort ( kt      )     ! phytoplankton mortality
98         !                             ! zooplankton sources/sinks routines
99         CALL p5z_micro( kt, knt )           ! microzooplankton
100         CALL p5z_meso ( kt, knt )           ! mesozooplankton
101         CALL p5z_agg  ( kt, knt )     ! Aggregation of particles
102      ENDIF
103      !
104      CALL p4z_rem     ( kt, knt )     ! remineralization terms of organic matter+scavenging of Fe
105      CALL p4z_poc     ( kt, knt )     ! Remineralization of organic particles
106      IF( ln_ligand ) THEN
107        CALL p4z_ligand( kt, knt )
108      ENDIF
109      !                                                             !
110      IF(ln_ctl)   THEN  ! print mean trends (used for debugging)
111         WRITE(charout, FMT="('bio ')")
112         CALL prt_ctl_trc_info(charout)
113         CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm)
114      ENDIF
115      !
116      IF( nn_timing == 1 )  CALL timing_stop('p4z_bio')
117      !
118   END SUBROUTINE p4z_bio
119
120   !!======================================================================
121END MODULE p4zbio
Note: See TracBrowser for help on using the repository browser.