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.
p4zdiat.F in branches/dev_001_GM/NEMO/TOP_SRC/PISCES_SMS – NEMO

source: branches/dev_001_GM/NEMO/TOP_SRC/PISCES_SMS/p4zdiat.F @ 772

Last change on this file since 772 was 772, checked in by gm, 16 years ago

dev_001_GM - change the name of cpp key to key_top, key_lobster, key_pisces, key_kriest and the corresponding lk_

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1
2CCC $Header$ 
3CCC  TOP 1.0 , LOCEAN-IPSL (2005) 
4C This software is governed by CeCILL licence see modipsl/doc/NEMO_CeCILL.txt 
5C ---------------------------------------------------------------------------
6CDIR$ LIST
7      SUBROUTINE p4zdiat
8#if defined key_top && defined key_pisces
9CCC---------------------------------------------------------------------
10CCC
11CCC           ROUTINE p4zdiat : PISCES MODEL
12CCC           ******************************
13CCC
14CCC  PURPOSE :
15CCC  ---------
16CCC         Compute the mortality terms for diatoms
17CCC
18CC   INPUT :
19CC   -----
20CC      argument
21CC              None
22CC      common
23CC              all the common defined in opa
24CC
25CC
26CC   OUTPUT :                   : no
27CC   ------
28CC
29CC   EXTERNAL :
30CC   --------
31CC           None
32CC
33CC   MODIFICATIONS:
34CC   --------------
35CC      original  : O. Aumont (2002)
36CC----------------------------------------------------------------------
37CC parameters and commons
38CC ======================
39CDIR$ NOLIST
40      USE oce_trc
41      USE trp_trc
42      USE sms
43      IMPLICIT NONE
44CDIR$ LIST
45CC----------------------------------------------------------------------
46CC local declarations
47CC ==================
48      INTEGER ji, jj, jk
49      REAL zfact,zstep,compadi
50C
51C      Time step duration for biology
52C      ------------------------------
53C
54        zstep=rfact2/rjjss
55C
56C    Aggregation term for diatoms is increased in case of nutrient
57C    stress as observed in reality. The stressed cells become more
58C    sticky and coagulate to sink quickly out of the euphotic zone
59C     ------------------------------------------------------------
60C
61        DO jk = 1,jpkm1
62          DO jj = 1,jpj
63            DO ji = 1,jpi
64C
65        compadi = max((trn(ji,jj,jk,jpdia)-1E-8),0.)
66        zfact=1./(trn(ji,jj,jk,jpdia)+rtrn)
67C
68C    Aggregation term for diatoms is increased in case of nutrient
69C    stress as observed in reality. The stressed cells become more
70C    sticky and coagulate to sink quickly out of the euphotic zone
71C     ------------------------------------------------------------
72C
73        respp2(ji,jj,jk) = 1E6*zstep
74     &    *(wchl+wchld*(1.-xlimdia(ji,jj,jk)))
75     &    *zdiss(ji,jj,jk)*compadi*trn(ji,jj,jk,jpdia)
76#    if defined key_off_degrad
77     &    *facvol(ji,jj,jk)
78#    endif
79                                                                               
80        respds(ji,jj,jk) = respp2(ji,jj,jk)
81     &    *trn(ji,jj,jk,jpbsi)*zfact
82
83        respdf(ji,jj,jk) = respp2(ji,jj,jk)
84     &    *trn(ji,jj,jk,jpdfe)*zfact
85                                                                               
86        respdch(ji,jj,jk)=respp2(ji,jj,jk)
87     &    *trn(ji,jj,jk,jpdch)*zfact
88C
89C     Phytoplankton mortality. 
90C     ------------------------
91C
92        tortp2(ji,jj,jk) = mprat2*zstep*trn(ji,jj,jk,jpdia)
93     &    /(xkmort+trn(ji,jj,jk,jpdia))*compadi
94#    if defined key_off_degrad
95     &    *facvol(ji,jj,jk)
96#    endif
97
98        tortds(ji,jj,jk) = tortp2(ji,jj,jk)
99     &    *trn(ji,jj,jk,jpbsi)*zfact
100
101        tortdf(ji,jj,jk)=tortp2(ji,jj,jk)
102     &    *trn(ji,jj,jk,jpdfe)*zfact
103
104        tortdch(ji,jj,jk)=tortp2(ji,jj,jk)
105     &    *trn(ji,jj,jk,jpdch)*zfact
106C
107            END DO
108          END DO
109        END DO
110C
111#endif
112      RETURN
113      END
Note: See TracBrowser for help on using the repository browser.