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.
p5zbio.F90 in branches/CNRS/dev_r6270_PISCES_QUOTA/NEMOGCM/NEMO/TOP_SRC/PISCES/P5Z – NEMO

source: branches/CNRS/dev_r6270_PISCES_QUOTA/NEMOGCM/NEMO/TOP_SRC/PISCES/P5Z/p5zbio.F90 @ 6966

Last change on this file since 6966 was 6966, checked in by aumont, 8 years ago

various bug fixes and updates on carbon chemistry

File size: 5.0 KB
Line 
1MODULE p5zbio
2   !!======================================================================
3   !!                         ***  MODULE p5zbio  ***
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   !!             3.6  !  2015-05  (O. Aumont) PISCES quota
9   !!----------------------------------------------------------------------
10#if defined key_pisces_quota
11   !!----------------------------------------------------------------------
12   !!   'key_pisces_quota'     PISCES bio-model with variable stoichiometry
13   !!----------------------------------------------------------------------
14   !!   p5z_bio        :   computes the interactions between the different
15   !!                      compartments of PISCES
16   !!----------------------------------------------------------------------
17   USE oce_trc         !  shared variables between ocean and passive tracers
18   USE trc             !  passive tracers common variables
19   USE sms_pisces      !  PISCES Source Minus Sink variables
20   USE p5zsink         !  vertical flux of particulate matter due to sinking
21   USE p4zopt          !  optical model
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 p5zrem          !  Remineralisation of organic/inorganic matter
28   USE p5zpoc          !  Remineralisation of organic particles
29   USE p5zagg          !  Aggregation of particles
30   USE p4zligand       !  Remineralization of ligands
31   USE prtctl_trc      !  print control for debugging
32   USE iom             !  I/O manager
33 
34   IMPLICIT NONE
35   PRIVATE
36
37   PUBLIC  p5z_bio   
38
39   !!* Substitution
40#  include "top_substitute.h90"
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   !!----------------------------------------------------------------------
46
47CONTAINS
48
49   SUBROUTINE p5z_bio ( kt, knt )
50      !!---------------------------------------------------------------------
51      !!                     ***  ROUTINE p5z_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      INTEGER  ::  ji, jj, jk, jn
61      CHARACTER (len=25) :: charout
62
63      !!---------------------------------------------------------------------
64      !
65      IF( nn_timing == 1 )  CALL timing_start('p5z_bio')
66      !
67      !     ASSIGN THE SHEAR RATE THAT IS USED FOR AGGREGATION
68      !     OF PHYTOPLANKTON AND DETRITUS
69
70      xdiss(:,:,:) = 1.
71!!gm the use of nmld should be better here?
72      DO jk = 2, jpkm1
73         DO jj = 1, jpj
74            DO ji = 1, jpi
75               IF( fsdepw(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 p5z_sink ( kt, knt )     ! vertical flux of particulate organic matter
82      CALL p4z_fechem(kt, knt )     ! Iron chemistry/scavenging
83      CALL p5z_lim  ( kt, knt )     ! co-limitations by the various nutrients
84      CALL p5z_prod ( kt, knt )     ! phytoplankton growth rate over the global ocean.
85      !                             ! (for each element : C, Si, Fe, Chl )
86      CALL p5z_mort ( kt      )     ! phytoplankton mortality
87      !                             ! zooplankton sources/sinks routines
88      CALL p5z_micro( kt, knt )           ! microzooplankton
89      CALL p5z_meso ( kt, knt )           ! mesozooplankton
90      CALL p5z_agg  ( kt, knt )     ! Aggregation of particles
91      CALL p5z_rem  ( kt, knt )     ! remineralization terms of organic matter+scavenging of Fe
92      CALL p5z_poc  ( kt, knt )     ! Remineralisation of organic particles
93      CALL p4z_ligand( kt, knt)     ! Remineralization of ligands
94      !                             ! test if tracers concentrations fall below 0.
95      !
96      IF( nn_timing == 1 )  CALL timing_stop('p5z_bio')
97      !
98   END SUBROUTINE p5z_bio
99
100#else
101   !!======================================================================
102   !!  Dummy module :                                   No PISCES bio-model
103   !!======================================================================
104CONTAINS
105   SUBROUTINE p5z_bio                         ! Empty routine
106   END SUBROUTINE p5z_bio
107#endif 
108
109   !!======================================================================
110END MODULE  p5zbio
111
Note: See TracBrowser for help on using the repository browser.