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 NEMO/branches/2019/dev_r11708_aumont_PISCES_QUOTA/src/TOP/PISCES/P4Z – NEMO

source: NEMO/branches/2019/dev_r11708_aumont_PISCES_QUOTA/src/TOP/PISCES/P4Z/p4zbio.F90 @ 12537

Last change on this file since 12537 was 12537, checked in by aumont, 4 years ago

Comments in routines have been revised and significantly augmented

  • Property svn:keywords set to Id
File size: 5.7 KB
Line 
1MODULE p4zbio
2   !!======================================================================
3   !!                         ***  MODULE p4zbio  ***
4   !! TOP :   PISCES biogeochemical model
5   !!         This module is for both PISCES and PISCES-QUOTA
6   !!======================================================================
7   !! History :   1.0  !  2004     (O. Aumont) Original code
8   !!             2.0  !  2007-12  (C. Ethe, G. Madec)  F90
9   !!             3.6  ! 2015 (O. Aumont) PISCES-QUOTA
10   !!----------------------------------------------------------------------
11   !!   p4z_bio        :   computes the interactions between the different
12   !!                      compartments of PISCES
13   !!----------------------------------------------------------------------
14   USE oce_trc         !  shared variables between ocean and passive tracers
15   USE trc             !  passive tracers common variables
16   USE sms_pisces      !  PISCES Source Minus Sink variables
17   USE p4zsink         !  vertical flux of particulate matter due to sinking
18   USE p4zopt          !  optical model
19   USE p4zlim          !  Co-limitations of differents nutrients
20   USE p4zprod         !  Growth rate of the 2 phyto groups
21   USE p4zmort         !  Mortality terms for phytoplankton
22   USE p4zmicro        !  Sources and sinks of microzooplankton
23   USE p4zmeso         !  Sources and sinks of mesozooplankton
24   USE p5zlim          !  Co-limitations of differents nutrients
25   USE p5zprod         !  Growth rate of the 2 phyto groups
26   USE p5zmort         !  Mortality terms for phytoplankton
27   USE p5zmicro        !  Sources and sinks of microzooplankton
28   USE p5zmeso         !  Sources and sinks of mesozooplankton
29   USE p4zrem          !  Remineralisation of organic matter
30   USE p4zpoc          !  Remineralization of organic particles
31   USE p4zagg          !  Aggregation of particles
32   USE p4zfechem
33   USE p4zligand       !  Prognostic ligand model
34   USE prtctl_trc      !  print control for debugging
35   USE iom             !  I/O manager
36 
37   IMPLICIT NONE
38   PRIVATE
39
40   PUBLIC  p4z_bio   
41
42   !!----------------------------------------------------------------------
43   !! NEMO/TOP 4.0 , NEMO Consortium (2018)
44   !! $Id$
45   !! Software governed by the CeCILL license (see ./LICENSE)
46   !!----------------------------------------------------------------------
47CONTAINS
48
49   SUBROUTINE p4z_bio ( kt, knt )
50      !!---------------------------------------------------------------------
51      !!                     ***  ROUTINE p4z_bio  ***
52      !!
53      !! ** Purpose :   Ecosystem model in the whole ocean: computes the
54      !!                different interactions between the different compartments
55      !!                of PISCES
56      !!
57      !! ** Method  : - ???
58      !!---------------------------------------------------------------------
59      INTEGER, INTENT(in) :: kt, knt
60      !
61      INTEGER             :: ji, jj, jk, jn
62      CHARACTER (len=25) :: charout
63      !!---------------------------------------------------------------------
64      !
65      IF( ln_timing )   CALL timing_start('p4z_bio')
66
67      ! ASSIGN THE SHEAR RATE THAT IS USED FOR AGGREGATION
68      ! OF PHYTOPLANKTON AND DETRITUS
69      xdiss(:,:,:) = 1.
70      DO jk = 2, jpkm1
71         DO jj = 1, jpj
72            DO ji = 1, jpi
73               IF( gdepw_n(ji,jj,jk+1) > hmld(ji,jj) )   xdiss(ji,jj,jk) = 0.01
74            END DO
75         END DO
76      END DO
77
78      CALL p4z_opt     ( kt, knt )     ! Optics: PAR in the water column
79      CALL p4z_sink    ( kt, knt )     ! vertical flux of particulate organic matter
80      CALL p4z_fechem  ( kt, knt )     ! Iron chemistry/scavenging
81      !
82      IF( ln_p4z ) THEN
83         CALL p4z_lim  ( kt, knt )     ! co-limitations by the various nutrients
84         CALL p4z_prod ( kt, knt )     ! phytoplankton growth rate over the global ocean.
85         !                             ! (for each element : C, Si, Fe, Chl )
86         CALL p4z_mort ( kt      )     ! phytoplankton mortality
87         !                             ! zooplankton sources/sinks routines
88         CALL p4z_micro( kt, knt )     ! microzooplankton
89         CALL p4z_meso ( kt, knt )     ! mesozooplankton
90      ELSE
91         CALL p5z_lim  ( kt, knt )     ! co-limitations by the various nutrients
92         CALL p5z_prod ( kt, knt )     ! phytoplankton growth rate over the global ocean.
93         !                             ! (for each element : C, N, P, Si, Fe, Chl )
94         CALL p5z_mort ( kt      )     ! phytoplankton mortality
95         !                             ! zooplankton sources/sinks routines
96         CALL p5z_micro( kt, knt )     ! microzooplankton
97         CALL p5z_meso ( kt, knt )     ! mesozooplankton
98      ENDIF
99      !
100      CALL p4z_agg     ( kt, knt )     ! Aggregation of particles
101      CALL p4z_rem     ( kt, knt )     ! remineralization terms of organic matter+scavenging of Fe
102      CALL p4z_poc     ( kt, knt )     ! Remineralization of organic particles
103      !
104      ! Ligand production. ln_ligand should be set .true. to activate
105      IF( ln_ligand )  &
106      & CALL p4z_ligand( kt, knt )
107
108      ! Update of the size of the different phytoplankton groups
109      IF (ln_p5z) THEN
110         sized(:,:,:) = sizeda(:,:,:)
111         sizen(:,:,:) = sizena(:,:,:)
112         sizep(:,:,:) = sizepa(:,:,:)
113      ENDIF
114      !                                                             !
115      IF(ln_ctl)   THEN  ! print mean trends (used for debugging)
116         WRITE(charout, FMT="('bio ')")
117         CALL prt_ctl_trc_info(charout)
118         CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm)
119      ENDIF
120      !
121      IF( ln_timing )   CALL timing_stop('p4z_bio')
122      !
123   END SUBROUTINE p4z_bio
124
125   !!======================================================================
126END MODULE p4zbio
Note: See TracBrowser for help on using the repository browser.