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 @ 13233

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

update of the PISCES comments

  • Property svn:keywords set to Id
File size: 5.8 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. Shear rate is supposed to equal 1
69      ! in the mixed layer and 0.1 below the mixed layer.
70      xdiss(:,:,:) = 1.
71      DO jk = 2, jpkm1
72         DO jj = 1, jpj
73            DO ji = 1, jpi
74               IF( gdepw_n(ji,jj,jk+1) > hmld(ji,jj) )   xdiss(ji,jj,jk) = 0.01
75            END DO
76         END DO
77      END DO
78
79      CALL p4z_opt     ( kt, knt )     ! Optics: PAR in the water column
80      CALL p4z_sink    ( kt, knt )     ! vertical flux of particulate organic matter
81      CALL p4z_fechem  ( kt, knt )     ! Iron chemistry/scavenging
82      !
83      IF( ln_p4z ) THEN  ! PISCES standard
84         ! Phytoplankton only sources/sinks terms
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      ELSE  ! PISCES-QUOTA
93         ! Phytoplankton only sources/sinks terms
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, N, P, 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      ENDIF
102      !
103      CALL p4z_agg     ( kt, knt )     ! Aggregation of particles
104      CALL p4z_rem     ( kt, knt )     ! remineralization terms of organic matter
105      CALL p4z_poc     ( kt, knt )     ! Remineralization of organic particles
106      !
107      ! Ligand production. ln_ligand should be set .true. to activate
108      IF( ln_ligand )  &
109      & CALL p4z_ligand( kt, knt )
110
111      ! Update of the size of the different phytoplankton groups
112      sized(:,:,:) = sizeda(:,:,:)
113      sizen(:,:,:) = sizena(:,:,:)
114      IF (ln_p5z) THEN
115         sizep(:,:,:) = sizepa(:,:,:)
116      ENDIF
117      !                                                             !
118      IF(ln_ctl)   THEN  ! print mean trends (used for debugging)
119         WRITE(charout, FMT="('bio ')")
120         CALL prt_ctl_trc_info(charout)
121         CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm)
122      ENDIF
123      !
124      IF( ln_timing )   CALL timing_stop('p4z_bio')
125      !
126   END SUBROUTINE p4z_bio
127
128   !!======================================================================
129END MODULE p4zbio
Note: See TracBrowser for help on using the repository browser.