1 | MODULE p5zmeso |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE p5zmeso *** |
---|
4 | !! TOP : PISCES Compute the sources/sinks for mesozooplankton |
---|
5 | !!====================================================================== |
---|
6 | !! History : 1.0 ! 2002 (O. Aumont) Original code |
---|
7 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) F90 |
---|
8 | !! 3.4 ! 2011-06 (O. Aumont, C. Ethe) Quota model for iron |
---|
9 | !! 3.6 ! 2015-05 (O. Aumont) PISCES quota |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | #if defined key_pisces_quota |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | !! 'key_pisces_quota' PISCES bio-model |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | !! p5z_meso : Compute the sources/sinks for mesozooplankton |
---|
16 | !! p5z_meso_init : Initialization of the parameters for mesozooplankton |
---|
17 | !!---------------------------------------------------------------------- |
---|
18 | USE oce_trc ! shared variables between ocean and passive tracers |
---|
19 | USE trc ! passive tracers common variables |
---|
20 | USE sms_pisces ! PISCES Source Minus Sink variables |
---|
21 | USE prtctl_trc ! print control for debugging |
---|
22 | USE p5zsink ! Sedimentation of particles |
---|
23 | USE iom ! I/O manager |
---|
24 | |
---|
25 | IMPLICIT NONE |
---|
26 | PRIVATE |
---|
27 | |
---|
28 | PUBLIC p5z_meso ! called in p5zbio.F90 |
---|
29 | PUBLIC p5z_meso_init ! called in trcsms_pisces.F90 |
---|
30 | |
---|
31 | !! * Shared module variables |
---|
32 | REAL(wp), PUBLIC :: part2 !: part of calcite not dissolved in mesozoo guts |
---|
33 | REAL(wp), PUBLIC :: xpref2c !: mesozoo preference for POC |
---|
34 | REAL(wp), PUBLIC :: xpref2p !: mesozoo preference for nanophyto |
---|
35 | REAL(wp), PUBLIC :: xpref2z !: mesozoo preference for zooplankton |
---|
36 | REAL(wp), PUBLIC :: xpref2d !: mesozoo preference for Diatoms |
---|
37 | REAL(wp), PUBLIC :: xpref2m !: mesozoo preference for mesozoo |
---|
38 | REAL(wp), PUBLIC :: xthresh2zoo !: zoo feeding threshold for mesozooplankton |
---|
39 | REAL(wp), PUBLIC :: xthresh2dia !: diatoms feeding threshold for mesozooplankton |
---|
40 | REAL(wp), PUBLIC :: xthresh2phy !: nanophyto feeding threshold for mesozooplankton |
---|
41 | REAL(wp), PUBLIC :: xthresh2poc !: poc feeding threshold for mesozooplankton |
---|
42 | REAL(wp), PUBLIC :: xthresh2mes !: mesozoo feeding threshold for mesozooplankton |
---|
43 | REAL(wp), PUBLIC :: xthresh2 !: feeding threshold for mesozooplankton |
---|
44 | REAL(wp), PUBLIC :: resrat2 !: exsudation rate of mesozooplankton |
---|
45 | REAL(wp), PUBLIC :: mzrat2 !: microzooplankton mortality rate |
---|
46 | REAL(wp), PUBLIC :: grazrat2 !: maximal mesozoo grazing rate |
---|
47 | REAL(wp), PUBLIC :: xkgraz2 !: non assimilated fraction of P by mesozoo |
---|
48 | REAL(wp), PUBLIC :: unass2c !: Efficicency of mesozoo growth |
---|
49 | REAL(wp), PUBLIC :: unass2n !: Efficicency of mesozoo growth |
---|
50 | REAL(wp), PUBLIC :: unass2p !: Efficicency of mesozoo growth |
---|
51 | REAL(wp), PUBLIC :: epsher2 !: half sturation constant for grazing 2 |
---|
52 | REAL(wp), PUBLIC :: ssigma2 !: Fraction excreted as semi-labile DOM |
---|
53 | REAL(wp), PUBLIC :: srespir2 !: Active respiration |
---|
54 | REAL(wp), PUBLIC :: grazflux !: mesozoo flux feeding rate |
---|
55 | LOGICAL, PUBLIC :: bmetexc2 !: Use of excess carbon for respiration |
---|
56 | |
---|
57 | !!* Substitution |
---|
58 | # include "top_substitute.h90" |
---|
59 | !!---------------------------------------------------------------------- |
---|
60 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
61 | !! $Id: p4zmeso.F90 3160 2011-11-20 14:27:18Z cetlod $ |
---|
62 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
63 | !!---------------------------------------------------------------------- |
---|
64 | |
---|
65 | CONTAINS |
---|
66 | |
---|
67 | SUBROUTINE p5z_meso( kt, knt ) |
---|
68 | !!--------------------------------------------------------------------- |
---|
69 | !! *** ROUTINE p5z_meso *** |
---|
70 | !! |
---|
71 | !! ** Purpose : Compute the sources/sinks for mesozooplankton |
---|
72 | !! |
---|
73 | !! ** Method : - ??? |
---|
74 | !!--------------------------------------------------------------------- |
---|
75 | INTEGER, INTENT(in) :: kt, knt ! ocean time step |
---|
76 | INTEGER :: ji, jj, jk |
---|
77 | REAL(wp) :: zcompadi, zcompaph, zcompapoc, zcompaz, zcompam, zcompames |
---|
78 | REAL(wp) :: zgraze2, zdenom, zfact, zstep, zfood, zfoodlim, zproport |
---|
79 | REAL(wp) :: zmortzgoc, zfracc, zfracn, zfracp, zfracfe, zratio, zratio2 |
---|
80 | REAL(wp) :: zepsherf, zepshert, zepsherv, zrespirc, zrespirn, zrespirp, zbasresb, zbasresi |
---|
81 | REAL(wp) :: zgraztotc, zgraztotn, zgraztotp, zgraztotf, zbasresn, zbasresp, zbasresf |
---|
82 | REAL(wp) :: zgradoc, zgradon, zgradop, zgratmp, zgradoct, zgradont, zgrareft, zgradopt |
---|
83 | REAL(wp) :: zgrapoc, zgrapon, zgrapop, zgrapof, zprcaca, zmortz |
---|
84 | REAL(wp) :: zexcess, zgrarem, zgraren, zgrarep, zgraref |
---|
85 | REAL(wp) :: zbeta, zrespz, ztortz, zgrasratp, zgrasratn, zgrasratf |
---|
86 | REAL(wp) :: ztmp1, ztmp2, ztmp3, ztmp4, ztmp5, ztmptot |
---|
87 | #if defined key_kriest |
---|
88 | REAL znumpoc |
---|
89 | #endif |
---|
90 | REAL(wp) :: zgrazdc, zgrazz, zgrazm, zgrazpof, zgrazcal, zfracal |
---|
91 | REAL(wp) :: zgraznc, zgrazpoc, zgrazpon, zgrazpop, zgraznf, zgrazdf |
---|
92 | REAL(wp) :: zgraznp, zgraznn, zgrazdn, zgrazdp |
---|
93 | REAL(wp) :: zgrazfffp, zgrazfffg, zgrazffep, zgrazffeg |
---|
94 | REAL(wp) :: zgrazffnp, zgrazffng, zgrazffpp, zgrazffpg |
---|
95 | CHARACTER (len=25) :: charout |
---|
96 | REAL(wp) :: zrfact2, zmetexcess |
---|
97 | REAL(wp), POINTER, DIMENSION(:,:,:) :: zgrazing, zw3d |
---|
98 | |
---|
99 | !!--------------------------------------------------------------------- |
---|
100 | ! |
---|
101 | IF( nn_timing == 1 ) CALL timing_start('p5z_meso') |
---|
102 | ! |
---|
103 | IF( lk_iomput ) THEN |
---|
104 | CALL wrk_alloc( jpi, jpj, jpk, zgrazing ) |
---|
105 | zgrazing(:,:,:) = 0._wp |
---|
106 | ENDIF |
---|
107 | |
---|
108 | zmetexcess = 0.0 |
---|
109 | IF ( bmetexc2 ) zmetexcess = 1.0 |
---|
110 | |
---|
111 | DO jk = 1, jpkm1 |
---|
112 | DO jj = 1, jpj |
---|
113 | DO ji = 1, jpi |
---|
114 | zcompam = MAX( ( trb(ji,jj,jk,jpmes) - 1.e-9 ), 0.e0 ) |
---|
115 | # if defined key_degrad |
---|
116 | zstep = xstep * facvol(ji,jj,jk) |
---|
117 | # else |
---|
118 | zstep = xstep |
---|
119 | # endif |
---|
120 | zfact = zstep * tgfunc2(ji,jj,jk) * zcompam |
---|
121 | |
---|
122 | ! Michaelis-Menten mortality rates of mesozooplankton |
---|
123 | ! --------------------------------------------------- |
---|
124 | zrespz = resrat2 * zfact * ( trb(ji,jj,jk,jpmes) / ( xkmort + trb(ji,jj,jk,jpmes) ) & |
---|
125 | & + 3. * nitrfac(ji,jj,jk) ) |
---|
126 | |
---|
127 | ! Zooplankton mortality. A square function has been selected with |
---|
128 | ! no real reason except that it seems to be more stable and may mimic predation |
---|
129 | ! --------------------------------------------------------------- |
---|
130 | ztortz = mzrat2 * 1.e6 * zfact * trb(ji,jj,jk,jpmes) |
---|
131 | |
---|
132 | ! Computation of the abundance of the preys |
---|
133 | ! A threshold can be specified in the namelist |
---|
134 | ! -------------------------------------------- |
---|
135 | zcompadi = MAX( ( trb(ji,jj,jk,jpdia) - xthresh2dia ), 0.e0 ) |
---|
136 | zcompaz = MAX( ( trb(ji,jj,jk,jpzoo) - xthresh2zoo ), 0.e0 ) |
---|
137 | zcompaph = MAX( ( trb(ji,jj,jk,jpphy) - xthresh2phy ), 0.e0 ) |
---|
138 | zcompapoc = MAX( ( trb(ji,jj,jk,jppoc) - xthresh2poc ), 0.e0 ) |
---|
139 | zcompames = MAX( ( trb(ji,jj,jk,jpmes) - xthresh2mes ), 0.e0 ) |
---|
140 | |
---|
141 | ! Mesozooplankton grazing |
---|
142 | ! ------------------------ |
---|
143 | zfood = xpref2d * zcompadi + xpref2z * zcompaz + xpref2p * zcompaph + xpref2c * zcompapoc & |
---|
144 | & + xpref2m * zcompames |
---|
145 | zfoodlim = MAX( 0., zfood - MIN( 0.5 * zfood, xthresh2 ) ) |
---|
146 | zdenom = zfoodlim / ( xkgraz2 + zfoodlim ) |
---|
147 | zgraze2 = grazrat2 * zstep * tgfunc2(ji,jj,jk) * trb(ji,jj,jk,jpmes) |
---|
148 | |
---|
149 | ! An active switching parameterization is used here. |
---|
150 | ! We don't use the KTW parameterization proposed by |
---|
151 | ! Vallina et al. because it tends to produce to steady biomass |
---|
152 | ! composition and the variance of Chl is too low as it grazes |
---|
153 | ! too strongly on winning organisms. Thus, instead of a square |
---|
154 | ! a 1.5 power value is used which decreases the pressure on the |
---|
155 | ! most abundant species |
---|
156 | ! ------------------------------------------------------------ |
---|
157 | ztmp1 = xpref2p * zcompaph**1.5 |
---|
158 | ztmp2 = xpref2m * zcompames**1.5 |
---|
159 | ztmp3 = xpref2c * zcompapoc**1.5 |
---|
160 | ztmp4 = xpref2d * zcompadi**1.5 |
---|
161 | ztmp5 = xpref2z * zcompaz**1.5 |
---|
162 | ztmptot = ztmp1 + ztmp2 + ztmp3 + ztmp4 + ztmp5 + rtrn |
---|
163 | ztmp1 = ztmp1 / ztmptot |
---|
164 | ztmp2 = ztmp2 / ztmptot |
---|
165 | ztmp3 = ztmp3 / ztmptot |
---|
166 | ztmp4 = ztmp4 / ztmptot |
---|
167 | ztmp5 = ztmp5 / ztmptot |
---|
168 | |
---|
169 | ! Mesozooplankton regular grazing on the different preys |
---|
170 | ! ------------------------------------------------------ |
---|
171 | zgrazdc = zgraze2 * ztmp4 * zdenom |
---|
172 | zgrazdn = zgrazdc * trb(ji,jj,jk,jpndi) / ( trb(ji,jj,jk,jpdia) + rtrn) |
---|
173 | zgrazdp = zgrazdc * trb(ji,jj,jk,jppdi) / ( trb(ji,jj,jk,jpdia) + rtrn) |
---|
174 | zgrazdf = zgrazdc * trb(ji,jj,jk,jpdfe) / ( trb(ji,jj,jk,jpdia) + rtrn) |
---|
175 | zgrazz = zgraze2 * ztmp5 * zdenom |
---|
176 | zgrazm = zgraze2 * ztmp2 * zdenom |
---|
177 | zgraznc = zgraze2 * ztmp1 * zdenom |
---|
178 | zgraznn = zgraznc * trb(ji,jj,jk,jpnph) / ( trb(ji,jj,jk,jpphy) + rtrn) |
---|
179 | zgraznp = zgraznc * trb(ji,jj,jk,jppph) / ( trb(ji,jj,jk,jpphy) + rtrn) |
---|
180 | zgraznf = zgraznc * trb(ji,jj,jk,jpnfe) / ( trb(ji,jj,jk,jpphy) + rtrn) |
---|
181 | zgrazpoc = zgraze2 * ztmp3 * zdenom |
---|
182 | zgrazpon = zgrazpoc * trb(ji,jj,jk,jppon) / ( trb(ji,jj,jk,jppoc) + rtrn) |
---|
183 | zgrazpop = zgrazpoc * trb(ji,jj,jk,jppop) / ( trb(ji,jj,jk,jppoc) + rtrn) |
---|
184 | zgrazpof = zgrazpoc * trb(ji,jj,jk,jpsfe) / ( trb(ji,jj,jk,jppoc) + rtrn) |
---|
185 | |
---|
186 | ! Mesozooplankton flux feeding on GOC |
---|
187 | ! ---------------------------------- |
---|
188 | # if ! defined key_kriest |
---|
189 | zgrazffeg = grazflux * zstep * wsbio4(ji,jj,jk) & |
---|
190 | & * tgfunc2(ji,jj,jk) * trb(ji,jj,jk,jpgoc) * trb(ji,jj,jk,jpmes) |
---|
191 | zgrazfffg = zgrazffeg * trb(ji,jj,jk,jpbfe) / (trb(ji,jj,jk,jpgoc) + rtrn) |
---|
192 | zgrazffng = zgrazffeg * trb(ji,jj,jk,jpgon) / (trb(ji,jj,jk,jpgoc) + rtrn) |
---|
193 | zgrazffpg = zgrazffeg * trb(ji,jj,jk,jpgop) / (trb(ji,jj,jk,jpgoc) + rtrn) |
---|
194 | # endif |
---|
195 | zgrazffep = grazflux * zstep * wsbio3(ji,jj,jk) & |
---|
196 | & * tgfunc2(ji,jj,jk) * trb(ji,jj,jk,jppoc) * trb(ji,jj,jk,jpmes) |
---|
197 | zgrazfffp = zgrazffep * trb(ji,jj,jk,jpsfe) / (trb(ji,jj,jk,jppoc) + rtrn) |
---|
198 | zgrazffnp = zgrazffep * trb(ji,jj,jk,jppon) / (trb(ji,jj,jk,jppoc) + rtrn) |
---|
199 | zgrazffpp = zgrazffep * trb(ji,jj,jk,jppop) / (trb(ji,jj,jk,jppoc) + rtrn) |
---|
200 | ! |
---|
201 | # if ! defined key_kriest |
---|
202 | zgraztotc = zgrazdc + zgrazz + zgraznc + zgrazm + zgrazpoc + zgrazffep + zgrazffeg |
---|
203 | |
---|
204 | ! Compute the proportion of filter feeders |
---|
205 | ! ---------------------------------------- |
---|
206 | zproport = (zgrazffep + zgrazffeg)/(rtrn + zgraztotc) |
---|
207 | |
---|
208 | ! Compute fractionation of aggregates. It is assumed that |
---|
209 | ! diatoms based aggregates are more prone to fractionation |
---|
210 | ! since they are more porous (marine snow instead of fecal pellets) |
---|
211 | ! ---------------------------------------------------------------- |
---|
212 | zratio = trb(ji,jj,jk,jpgsi) / ( trb(ji,jj,jk,jpgoc) + rtrn ) |
---|
213 | zratio2 = zratio * zratio |
---|
214 | zfracc = zproport * grazflux * zstep * wsbio4(ji,jj,jk) & |
---|
215 | & * trb(ji,jj,jk,jpgoc) * trb(ji,jj,jk,jpmes) & |
---|
216 | & * ( 0.2 + 3.8 * zratio2 / ( 1.**2 + zratio2 ) ) |
---|
217 | zfracfe = zfracc * trb(ji,jj,jk,jpbfe) / (trb(ji,jj,jk,jpgoc) + rtrn) |
---|
218 | zfracn = zfracc * trb(ji,jj,jk,jpgon) / (trb(ji,jj,jk,jpgoc) + rtrn) |
---|
219 | zfracp = zfracc * trb(ji,jj,jk,jpgop) / (trb(ji,jj,jk,jpgoc) + rtrn) |
---|
220 | |
---|
221 | zgrazffep = zproport * zgrazffep ; zgrazffeg = zproport * zgrazffeg |
---|
222 | zgrazfffp = zproport * zgrazfffp ; zgrazfffg = zproport * zgrazfffg |
---|
223 | zgrazffnp = zproport * zgrazffnp ; zgrazffng = zproport * zgrazffng |
---|
224 | zgrazffpp = zproport * zgrazffpp ; zgrazffpg = zproport * zgrazffpg |
---|
225 | |
---|
226 | zgraztotc = zgrazdc + zgrazz + zgraznc + zgrazm + zgrazpoc + zgrazffep + zgrazffeg |
---|
227 | zgraztotf = zgrazdf + zgraznf + ( zgrazz + zgrazm ) * ferat3 + zgrazpof & |
---|
228 | & + zgrazfffp + zgrazfffg |
---|
229 | zgraztotn = zgrazdn + (zgrazm + zgrazz) * no3rat3 + zgraznn + zgrazpon & |
---|
230 | & + zgrazffnp + zgrazffng |
---|
231 | zgraztotp = zgrazdp + (zgrazz + zgrazm) * po4rat3 + zgraznp + zgrazpop & |
---|
232 | & + zgrazffpp + zgrazffpg |
---|
233 | |
---|
234 | # else |
---|
235 | zgraztotc = zgrazdc + zgrazz + zgrazm + zgraznc + zgrazpoc + zgrazffep |
---|
236 | |
---|
237 | ! Compute the proportion of filter feeders |
---|
238 | ! ---------------------------------------- |
---|
239 | zproport = zgrazffep / ( zgraztotc + rtrn ) |
---|
240 | zgrazffep = zproport * zgrazffep ; zgrazfffp = zproport * zgrazfffp |
---|
241 | zgrazffnp = zproport * zgrazffnp ; zgrazffpp = zproport * zgrazffpp |
---|
242 | zgraztotc = zgrazdc + zgrazz + zgrazm + zgraznc + zgrazpoc + zgrazffep |
---|
243 | zgraztotf = zgrazdf + zgraznf + (zgrazz + zgrazm) * ferat3 + zgrazpof + zgrazfffp |
---|
244 | zgraztotn = zgrazdn + (zgrazz + zgrazm) * no3rat3 + zgraznn + zgrazpon + zgrazffnp |
---|
245 | zgraztotp = zgrazdp + (zgrazz + zgrazm) * po4rat3 + zgraznp + zgrazpop + zgrazffpp |
---|
246 | # endif |
---|
247 | |
---|
248 | ! Total grazing ( grazing by microzoo is already computed in p5zmicro ) |
---|
249 | IF( ln_diatrc .AND. lk_iomput ) zgrazing(ji,jj,jk) = zgraztotc |
---|
250 | |
---|
251 | ! Stoichiometruc ratios of the food ingested by zooplanton |
---|
252 | ! -------------------------------------------------------- |
---|
253 | zgrasratf = (zgraztotf + rtrn) / ( zgraztotc + rtrn ) |
---|
254 | zgrasratn = (zgraztotn + rtrn) / ( zgraztotc + rtrn ) |
---|
255 | zgrasratp = (zgraztotp + rtrn) / ( zgraztotc + rtrn ) |
---|
256 | |
---|
257 | ! Growth efficiency is made a function of the quality |
---|
258 | ! and the quantity of the preys |
---|
259 | ! --------------------------------------------------- |
---|
260 | zepshert = MIN( 1., zgrasratn/ no3rat3, zgrasratp/ po4rat3, zgrasratf / ferat3) |
---|
261 | zbeta = 1./ (epsher2 - 0.2) |
---|
262 | zepsherf = 0.2 + 1./ (zbeta + 0.04 * 12. * zfood *1E6 ) |
---|
263 | zepsherv = zepsherf * zepshert |
---|
264 | |
---|
265 | ! Respiration of mesozooplankton |
---|
266 | ! Excess carbon in the food is used preferentially |
---|
267 | ! ---------------- ------------------------------ |
---|
268 | zexcess = zgraztotc * zepsherf * (1.0 - zepshert) * zmetexcess |
---|
269 | zbasresb = MAX(0., zrespz - zexcess) |
---|
270 | zbasresi = zexcess + MIN(0., zrespz - zexcess) |
---|
271 | zrespirc = srespir2 * zepsherv * zgraztotc + zbasresb |
---|
272 | |
---|
273 | ! When excess carbon is used, the other elements in excess |
---|
274 | ! are also used proportionally to their abundance |
---|
275 | ! -------------------------------------------------------- |
---|
276 | zexcess = ( zgrasratn/ no3rat3 - zepshert ) / ( 1.0 - zepshert + rtrn) |
---|
277 | zbasresn = zbasresi * zexcess * zgrasratn |
---|
278 | zexcess = ( zgrasratp/ po4rat3 - zepshert ) / ( 1.0 - zepshert + rtrn) |
---|
279 | zbasresp = zbasresi * zexcess * zgrasratp |
---|
280 | zexcess = ( zgrasratf/ ferat3 - zepshert ) / ( 1.0 - zepshert + rtrn) |
---|
281 | zbasresf = zbasresi * zexcess * zgrasratf |
---|
282 | |
---|
283 | ! Voiding of the excessive elements as organic matter |
---|
284 | ! -------------------------------------------------------- |
---|
285 | zgradoct = (1. - unass2c - zepsherv) * zgraztotc - zbasresi |
---|
286 | zgradont = (1. - unass2n) * zgraztotn - zepsherv * no3rat3 * zgraztotc - zbasresn |
---|
287 | zgradopt = (1. - unass2p) * zgraztotp - zepsherv * po4rat3 * zgraztotc - zbasresp |
---|
288 | zgrareft = (1. - unass2c) * zgraztotf - zepsherv * ferat3 * zgraztotc - zbasresf |
---|
289 | ztmp1 = ( 1. - epsher2 - unass2c ) /( 1. - 0.8 * epsher2 ) * ztortz |
---|
290 | zgradoc = (zgradoct + ztmp1) * ssigma2 |
---|
291 | zgradon = (zgradont + no3rat3 * ztmp1) * ssigma2 |
---|
292 | zgradop = (zgradopt + po4rat3 * ztmp1) * ssigma2 |
---|
293 | zgratmp = 0.2 * epsher2 /( 1. - 0.8 * epsher2 ) * ztortz |
---|
294 | |
---|
295 | ! Since only semilabile DOM is represented in PISCES |
---|
296 | ! part of DOM is in fact labile and is then released |
---|
297 | ! as dissolved inorganic compounds (ssigma2) |
---|
298 | ! -------------------------------------------------- |
---|
299 | zgrarem = zgratmp + ( zgradoct + ztmp1 ) * (1.0 - ssigma2) |
---|
300 | zgraren = no3rat3 * zgratmp + ( zgradont + no3rat3 * ztmp1 ) * (1.0 - ssigma2) |
---|
301 | zgrarep = po4rat3 * zgratmp + ( zgradopt + po4rat3 * ztmp1 ) * (1.0 - ssigma2) |
---|
302 | zgraref = zgrareft + ferat3 * ( ztmp1 + zgratmp ) |
---|
303 | |
---|
304 | ! Defecation as a result of non assimilated products |
---|
305 | ! -------------------------------------------------- |
---|
306 | zgrapoc = zgraztotc * unass2c + unass2c / ( 1. - 0.8 * epsher2 ) * ztortz |
---|
307 | zgrapon = zgraztotn * unass2n + no3rat3 * unass2n / ( 1. - 0.8 * epsher2 ) * ztortz |
---|
308 | zgrapop = zgraztotp * unass2p + po4rat3 * unass2p / ( 1. - 0.8 * epsher2 ) * ztortz |
---|
309 | zgrapof = zgraztotf * unass2c + ferat3 * unass2c / ( 1. - 0.8 * epsher2 ) * ztortz |
---|
310 | |
---|
311 | ! Addition of respiration to the release of inorganic nutrients |
---|
312 | ! ------------------------------------------------------------- |
---|
313 | zgrarem = zgrarem + zbasresi + zrespirc |
---|
314 | zgraren = zgraren + zbasresn + zrespirc * no3rat3 |
---|
315 | zgrarep = zgrarep + zbasresp + zrespirc * po4rat3 |
---|
316 | zgraref = zgraref + zbasresf + zrespirc * ferat3 |
---|
317 | |
---|
318 | ! Update the arrays TRA which contain the biological sources and |
---|
319 | ! sinks |
---|
320 | ! -------------------------------------------------------------- |
---|
321 | tra(ji,jj,jk,jppo4) = tra(ji,jj,jk,jppo4) + zgrarep |
---|
322 | tra(ji,jj,jk,jpnh4) = tra(ji,jj,jk,jpnh4) + zgraren |
---|
323 | tra(ji,jj,jk,jpdoc) = tra(ji,jj,jk,jpdoc) + zgradoc |
---|
324 | #if defined key_ligand |
---|
325 | tra(ji,jj,jk,jplgw) = tra(ji,jj,jk,jplgw) + zgradoc * ldocz |
---|
326 | #endif |
---|
327 | tra(ji,jj,jk,jpdon) = tra(ji,jj,jk,jpdon) + zgradon |
---|
328 | tra(ji,jj,jk,jpdop) = tra(ji,jj,jk,jpdop) + zgradop |
---|
329 | tra(ji,jj,jk,jpoxy) = tra(ji,jj,jk,jpoxy) - o2ut * zgrarem |
---|
330 | tra(ji,jj,jk,jpfer) = tra(ji,jj,jk,jpfer) + zgraref |
---|
331 | tra(ji,jj,jk,jpdic) = tra(ji,jj,jk,jpdic) + zgrarem |
---|
332 | tra(ji,jj,jk,jptal) = tra(ji,jj,jk,jptal) + rno3 * zgraren |
---|
333 | tra(ji,jj,jk,jpmes) = tra(ji,jj,jk,jpmes) + zepsherv * zgraztotc - zrespirc & |
---|
334 | & - ztortz - zgrazm |
---|
335 | tra(ji,jj,jk,jpdia) = tra(ji,jj,jk,jpdia) - zgrazdc |
---|
336 | tra(ji,jj,jk,jpndi) = tra(ji,jj,jk,jpndi) - zgrazdn |
---|
337 | tra(ji,jj,jk,jppdi) = tra(ji,jj,jk,jppdi) - zgrazdp |
---|
338 | tra(ji,jj,jk,jpdfe) = tra(ji,jj,jk,jpdfe) - zgrazdf |
---|
339 | tra(ji,jj,jk,jpzoo) = tra(ji,jj,jk,jpzoo) - zgrazz |
---|
340 | tra(ji,jj,jk,jpphy) = tra(ji,jj,jk,jpphy) - zgraznc |
---|
341 | tra(ji,jj,jk,jpnph) = tra(ji,jj,jk,jpnph) - zgraznn |
---|
342 | tra(ji,jj,jk,jppph) = tra(ji,jj,jk,jppph) - zgraznp |
---|
343 | tra(ji,jj,jk,jpnfe) = tra(ji,jj,jk,jpnfe) - zgraznf |
---|
344 | tra(ji,jj,jk,jpnch) = tra(ji,jj,jk,jpnch) - zgraznc * trb(ji,jj,jk,jpnch) / ( trb(ji,jj,jk,jpphy) + rtrn ) |
---|
345 | tra(ji,jj,jk,jpdch) = tra(ji,jj,jk,jpdch) - zgrazdc * trb(ji,jj,jk,jpdch) / ( trb(ji,jj,jk,jpdia) + rtrn ) |
---|
346 | tra(ji,jj,jk,jpdsi) = tra(ji,jj,jk,jpdsi) - zgrazdc * trb(ji,jj,jk,jpdsi) / ( trb(ji,jj,jk,jpdia) + rtrn ) |
---|
347 | tra(ji,jj,jk,jpgsi) = tra(ji,jj,jk,jpgsi) + zgrazdc * trb(ji,jj,jk,jpdsi) / ( trb(ji,jj,jk,jpdia) + rtrn ) |
---|
348 | |
---|
349 | #if defined key_kriest |
---|
350 | znumpoc = trb(ji,jj,jk,jpnum) / ( trb(ji,jj,jk,jppoc) + rtrn ) |
---|
351 | tra(ji,jj,jk,jppoc) = tra(ji,jj,jk,jppoc) - zgrazpoc - zgrazffep + zgrapoc |
---|
352 | tra(ji,jj,jk,jppon) = tra(ji,jj,jk,jppon) - zgrazpon - zgrazffnp + zgrapon |
---|
353 | tra(ji,jj,jk,jppop) = tra(ji,jj,jk,jppop) - zgrazpop - zgrazffpp + zgrapop |
---|
354 | tra(ji,jj,jk,jpnum) = tra(ji,jj,jk,jpnum) - zgrazpoc * znumpoc + zgrapoc * xkr_dmeso & |
---|
355 | & - zgrazffep * znumpoc * wsbio4(ji,jj,jk) / ( wsbio3(ji,jj,jk) + rtrn ) |
---|
356 | tra(ji,jj,jk,jpsfe) = tra(ji,jj,jk,jpsfe) - zgrazfffp - zgrazpof & |
---|
357 | & + zgrapof |
---|
358 | zfracal = trb(ji,jj,jk,jpcal) / (trb(ji,jj,jk,jppoc) + rtrn ) |
---|
359 | zgrazcal = ( zgrazffep + zgrazpoc ) * (1. - part2) * zfracal |
---|
360 | #else |
---|
361 | tra(ji,jj,jk,jppoc) = tra(ji,jj,jk,jppoc) - zgrazpoc - zgrazffep + zfracc |
---|
362 | prodpoc(ji,jj,jk) = prodpoc(ji,jj,jk) + zfracc |
---|
363 | conspoc(ji,jj,jk) = conspoc(ji,jj,jk) - zgrazpoc - zgrazffep |
---|
364 | tra(ji,jj,jk,jppon) = tra(ji,jj,jk,jppon) - zgrazpon - zgrazffnp + zfracn |
---|
365 | tra(ji,jj,jk,jppop) = tra(ji,jj,jk,jppop) - zgrazpop - zgrazffpp + zfracp |
---|
366 | tra(ji,jj,jk,jpgoc) = tra(ji,jj,jk,jpgoc) - zgrazffeg + zgrapoc - zfracc |
---|
367 | prodgoc(ji,jj,jk) = prodgoc(ji,jj,jk) + zgrapoc |
---|
368 | consgoc(ji,jj,jk) = consgoc(ji,jj,jk) - zgrazffeg - zfracc |
---|
369 | tra(ji,jj,jk,jpgon) = tra(ji,jj,jk,jpgon) - zgrazffng + zgrapon - zfracn |
---|
370 | tra(ji,jj,jk,jpgop) = tra(ji,jj,jk,jpgop) - zgrazffpg + zgrapop - zfracp |
---|
371 | tra(ji,jj,jk,jpsfe) = tra(ji,jj,jk,jpsfe) - zgrazpof - zgrazfffp + zfracfe |
---|
372 | tra(ji,jj,jk,jpbfe) = tra(ji,jj,jk,jpbfe) - zgrazfffg + zgrapof - zfracfe |
---|
373 | zfracal = trb(ji,jj,jk,jpcal) / ( trb(ji,jj,jk,jpgoc) + rtrn ) |
---|
374 | zgrazcal = zgrazffeg * (1. - part2) * zfracal |
---|
375 | #endif |
---|
376 | ! calcite production |
---|
377 | ! ------------------ |
---|
378 | zprcaca = xfracal(ji,jj,jk) * zgraznc |
---|
379 | prodcal(ji,jj,jk) = prodcal(ji,jj,jk) + zprcaca ! prodcal=prodcal(nanophy)+prodcal(microzoo)+prodcal(mesozoo) |
---|
380 | zprcaca = part2 * zprcaca |
---|
381 | tra(ji,jj,jk,jpdic) = tra(ji,jj,jk,jpdic) + zgrazcal - zprcaca |
---|
382 | tra(ji,jj,jk,jptal) = tra(ji,jj,jk,jptal) + 2. * ( zgrazcal - zprcaca ) |
---|
383 | tra(ji,jj,jk,jpcal) = tra(ji,jj,jk,jpcal) - zgrazcal + zprcaca |
---|
384 | END DO |
---|
385 | END DO |
---|
386 | END DO |
---|
387 | ! |
---|
388 | IF( lk_iomput .AND. knt == nrdttrc ) THEN |
---|
389 | CALL wrk_alloc( jpi, jpj, jpk, zw3d ) |
---|
390 | IF( iom_use( "GRAZ2" ) ) THEN |
---|
391 | zw3d(:,:,:) = zgrazing(:,:,:) * 1.e+3 * rfact2r * tmask(:,:,:) ! Total grazing of phyto by zooplankton |
---|
392 | CALL iom_put( "GRAZ2", zw3d ) |
---|
393 | ENDIF |
---|
394 | IF( iom_use( "PCAL" ) ) THEN |
---|
395 | zw3d(:,:,:) = prodcal(:,:,:) * 1.e+3 * rfact2r * tmask(:,:,:) ! Calcite production |
---|
396 | CALL iom_put( "PCAL", zw3d ) |
---|
397 | ENDIF |
---|
398 | CALL wrk_dealloc( jpi, jpj, jpk, zw3d ) |
---|
399 | ENDIF |
---|
400 | ! |
---|
401 | IF(ln_ctl) THEN ! print mean trends (used for debugging) |
---|
402 | WRITE(charout, FMT="('meso')") |
---|
403 | CALL prt_ctl_trc_info(charout) |
---|
404 | CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm) |
---|
405 | ENDIF |
---|
406 | ! |
---|
407 | IF( lk_iomput ) CALL wrk_dealloc( jpi, jpj, jpk, zgrazing ) |
---|
408 | ! |
---|
409 | IF( nn_timing == 1 ) CALL timing_stop('p5z_meso') |
---|
410 | ! |
---|
411 | END SUBROUTINE p5z_meso |
---|
412 | |
---|
413 | SUBROUTINE p5z_meso_init |
---|
414 | |
---|
415 | !!---------------------------------------------------------------------- |
---|
416 | !! *** ROUTINE p5z_meso_init *** |
---|
417 | !! |
---|
418 | !! ** Purpose : Initialization of mesozooplankton parameters |
---|
419 | !! |
---|
420 | !! ** Method : Read the nampismes namelist and check the parameters |
---|
421 | !! called at the first timestep (nittrc000) |
---|
422 | !! |
---|
423 | !! ** input : Namelist nampismes |
---|
424 | !! |
---|
425 | !!---------------------------------------------------------------------- |
---|
426 | |
---|
427 | NAMELIST/nampismes/ part2, bmetexc2, grazrat2, resrat2, mzrat2, xpref2c, xpref2p, xpref2z, & |
---|
428 | & xpref2m, xpref2d, xthresh2dia, xthresh2phy, xthresh2zoo, xthresh2poc, & |
---|
429 | & xthresh2mes, xthresh2, xkgraz2, epsher2, ssigma2, unass2c, & |
---|
430 | & unass2n, unass2p, srespir2, grazflux |
---|
431 | |
---|
432 | INTEGER :: ios ! Local integer output status for namelist read |
---|
433 | |
---|
434 | REWIND( numnatp_ref ) ! Namelist nampismes in reference namelist : Pisces mesozooplankton |
---|
435 | READ ( numnatp_ref, nampismes, IOSTAT = ios, ERR = 901) |
---|
436 | 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampismes in reference namelist', lwp ) |
---|
437 | |
---|
438 | REWIND( numnatp_cfg ) ! Namelist nampismes in configuration namelist : Pisces mesozooplankton |
---|
439 | READ ( numnatp_cfg, nampismes, IOSTAT = ios, ERR = 902 ) |
---|
440 | 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampismes in configuration namelist', lwp ) |
---|
441 | IF(lwm) WRITE ( numonp, nampismes ) |
---|
442 | |
---|
443 | |
---|
444 | IF(lwp) THEN ! control print |
---|
445 | WRITE(numout,*) ' ' |
---|
446 | WRITE(numout,*) ' Namelist parameters for mesozooplankton, nampismes' |
---|
447 | WRITE(numout,*) ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' |
---|
448 | WRITE(numout,*) ' part of calcite not dissolved in mesozoo guts part2 =', part2 |
---|
449 | WRITE(numout,*) ' mesozoo preference for nano. xpref2p =', xpref2p |
---|
450 | WRITE(numout,*) ' mesozoo preference for diatoms xpref2d =', xpref2d |
---|
451 | WRITE(numout,*) ' mesozoo preference for zoo xpref2z =', xpref2z |
---|
452 | WRITE(numout,*) ' mesozoo preference for mesozoo xpref2m =', xpref2m |
---|
453 | WRITE(numout,*) ' mesozoo preference for poc xpref2c =', xpref2c |
---|
454 | WRITE(numout,*) ' microzoo feeding threshold for mesozoo xthresh2zoo =', xthresh2zoo |
---|
455 | WRITE(numout,*) ' diatoms feeding threshold for mesozoo xthresh2dia =', xthresh2dia |
---|
456 | WRITE(numout,*) ' nanophyto feeding threshold for mesozoo xthresh2phy =', xthresh2phy |
---|
457 | WRITE(numout,*) ' poc feeding threshold for mesozoo xthresh2poc =', xthresh2poc |
---|
458 | WRITE(numout,*) ' mesozoo feeding threshold for mesozoo xthresh2mes =', xthresh2mes |
---|
459 | WRITE(numout,*) ' feeding threshold for mesozooplankton xthresh2 =', xthresh2 |
---|
460 | WRITE(numout,*) ' exsudation rate of mesozooplankton resrat2 =', resrat2 |
---|
461 | WRITE(numout,*) ' mesozooplankton mortality rate mzrat2 =', mzrat2 |
---|
462 | WRITE(numout,*) ' maximal mesozoo grazing rate grazrat2 =', grazrat2 |
---|
463 | WRITE(numout,*) ' mesozoo flux feeding rate grazflux =', grazflux |
---|
464 | WRITE(numout,*) ' C egested fraction of food by mesozoo unass2c =', unass2c |
---|
465 | WRITE(numout,*) ' C egested fraction of food by mesozoo unass2n =', unass2n |
---|
466 | WRITE(numout,*) ' C egested fraction of food by mesozoo unass2p =', unass2p |
---|
467 | WRITE(numout,*) ' Efficicency of Mesozoo growth epsher2 =', epsher2 |
---|
468 | WRITE(numout,*) ' Fraction excreted as semi-labile DOM ssigma2 =', ssigma2 |
---|
469 | WRITE(numout,*) ' Active respiration srespir2 =', srespir2 |
---|
470 | WRITE(numout,*) ' half sturation constant for grazing 2 xkgraz2 =', xkgraz2 |
---|
471 | WRITE(numout,*) ' Use excess carbon for respiration bmetexc2 =', bmetexc2 |
---|
472 | ENDIF |
---|
473 | |
---|
474 | |
---|
475 | END SUBROUTINE p5z_meso_init |
---|
476 | |
---|
477 | |
---|
478 | #else |
---|
479 | !!====================================================================== |
---|
480 | !! Dummy module : No PISCES bio-model |
---|
481 | !!====================================================================== |
---|
482 | CONTAINS |
---|
483 | SUBROUTINE p5z_meso ! Empty routine |
---|
484 | END SUBROUTINE p5z_meso |
---|
485 | #endif |
---|
486 | |
---|
487 | !!====================================================================== |
---|
488 | END MODULE p5zmeso |
---|