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/CNRS/dev_r6270_PISCES_QUOTA/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z – NEMO

source: branches/CNRS/dev_r6270_PISCES_QUOTA/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zbio.F90 @ 8003

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

various bug fixes and updates on carbon chemistry

File size: 5.2 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#if defined key_pisces
10   !!----------------------------------------------------------------------
11   !!   'key_pisces'                                       PISCES bio-model
12   !!----------------------------------------------------------------------
13   !!   p4z_bio        :   computes the interactions between the different
14   !!                      compartments of PISCES
15   !!----------------------------------------------------------------------
16   USE oce_trc         !  shared variables between ocean and passive tracers
17   USE trc             !  passive tracers common variables
18   USE sms_pisces      !  PISCES Source Minus Sink variables
19   USE p4zsink         !  vertical flux of particulate matter due to sinking
20   USE p4zopt          !  optical model
21   USE p4zlim          !  Co-limitations of differents nutrients
22   USE p4zprod         !  Growth rate of the 2 phyto groups
23   USE p4zmort         !  Mortality terms for phytoplankton
24   USE p4zmicro        !  Sources and sinks of microzooplankton
25   USE p4zmeso         !  Sources and sinks of mesozooplankton
26   USE p4zrem          !  Remineralisation of organic/inorganic matter
27   USE p4zpoc          !  Remineralization of organic particles
28   USE p4zagg          !  Aggregation of particles
29   USE p4zfechem       !  Iron chemistry
30   USE p4zligand
31   USE prtctl_trc      !  print control for debugging
32   USE iom             !  I/O manager
33 
34   IMPLICIT NONE
35   PRIVATE
36
37   PUBLIC  p4z_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 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      INTEGER             :: ji, jj, jk, jn
61      CHARACTER (len=25) :: charout
62
63      !!---------------------------------------------------------------------
64      !
65      IF( nn_timing == 1 )  CALL timing_start('p4z_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         
81      CALL p4z_opt   ( kt, knt )     ! Optic: PAR in the water column
82      CALL p4z_sink  ( kt, knt )     ! vertical flux of particulate organic matter
83      CALL p4z_fechem(kt, knt )      ! Iron chemistry/scavenging
84      CALL p4z_lim   ( kt, knt )     ! co-limitations by the various nutrients
85      CALL p4z_prod  ( kt, knt )     ! phytoplankton growth rate over the global ocean.
86      !                              ! (for each element : C, Si, Fe, Chl )
87      CALL p4z_mort  ( kt      )     ! phytoplankton mortality
88      !                              ! zooplankton sources/sinks routines
89      CALL p4z_micro ( kt, knt )           ! microzooplankton
90      CALL p4z_meso  ( kt, knt )           ! mesozooplankton
91      CALL p4z_agg   ( kt, knt )     ! Aggregation of particles
92      CALL p4z_rem   ( kt, knt )     ! remineralization terms of organic matter+scavenging of Fe
93      CALL p4z_poc   ( kt, knt )     ! Remineralization of organic particles
94      CALL p4z_ligand(kt, knt )
95      !                             ! test if tracers concentrations fall below 0.
96      !                                                             !
97      IF(ln_ctl)   THEN  ! print mean trends (used for debugging)
98         WRITE(charout, FMT="('bio ')")
99         CALL prt_ctl_trc_info(charout)
100         CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm)
101      ENDIF
102      !
103      IF( nn_timing == 1 )  CALL timing_stop('p4z_bio')
104      !
105   END SUBROUTINE p4z_bio
106
107#else
108   !!======================================================================
109   !!  Dummy module :                                   No PISCES bio-model
110   !!======================================================================
111CONTAINS
112   SUBROUTINE p4z_bio                         ! Empty routine
113   END SUBROUTINE p4z_bio
114#endif 
115
116   !!======================================================================
117END MODULE p4zbio
Note: See TracBrowser for help on using the repository browser.