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

Last change on this file since 7068 was 7068, checked in by cetlod, 8 years ago

ROBUST5_CNRS : implementation of part I of new TOP interface - 1st step -, see ticket #1782

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