1 | MODULE p5zlim |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE p5zlim *** |
---|
4 | !! TOP : PISCES with variable stoichiometry |
---|
5 | !!====================================================================== |
---|
6 | !! History : 1.0 ! 2004 (O. Aumont) Original code |
---|
7 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) F90 |
---|
8 | !! 3.4 ! 2011-04 (O. Aumont, C. Ethe) Limitation for iron modelled in quota |
---|
9 | !! 3.6 ! 2015-05 (O. Aumont) PISCES quota |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | #if defined key_pisces_quota |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | !! 'key_pisces_quota' PISCES bio-model with variable stoichiometry |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | !! p5z_lim : Compute the nutrients limitation terms |
---|
16 | !! p5z_lim_init : Read the namelist |
---|
17 | !!---------------------------------------------------------------------- |
---|
18 | USE oce_trc ! Shared ocean-passive tracers variables |
---|
19 | USE trc ! Tracers defined |
---|
20 | USE sms_pisces ! PISCES variables |
---|
21 | USE p4zopt ! Optical |
---|
22 | USE iom ! I/O manager |
---|
23 | |
---|
24 | IMPLICIT NONE |
---|
25 | PRIVATE |
---|
26 | |
---|
27 | PUBLIC p5z_lim |
---|
28 | PUBLIC p5z_lim_init |
---|
29 | PUBLIC p5z_lim_alloc |
---|
30 | |
---|
31 | !! * Shared module variables |
---|
32 | REAL(wp), PUBLIC :: concnno3 !: NO3, PO4 half saturation |
---|
33 | REAL(wp), PUBLIC :: concpno3 !: NO3, PO4 half saturation |
---|
34 | REAL(wp), PUBLIC :: concdno3 !: Phosphate half saturation for diatoms |
---|
35 | REAL(wp), PUBLIC :: concnnh4 !: NH4 half saturation for phyto |
---|
36 | REAL(wp), PUBLIC :: concpnh4 !: NH4 half saturation for phyto |
---|
37 | REAL(wp), PUBLIC :: concdnh4 !: NH4 half saturation for diatoms |
---|
38 | REAL(wp), PUBLIC :: concnpo4 !: NH4 half saturation for diatoms |
---|
39 | REAL(wp), PUBLIC :: concppo4 !: NH4 half saturation for diatoms |
---|
40 | REAL(wp), PUBLIC :: concdpo4 !: NH4 half saturation for diatoms |
---|
41 | REAL(wp), PUBLIC :: concnfer !: Iron half saturation for nanophyto |
---|
42 | REAL(wp), PUBLIC :: concpfer !: Iron half saturation for nanophyto |
---|
43 | REAL(wp), PUBLIC :: concdfer !: Iron half saturation for diatoms |
---|
44 | REAL(wp), PUBLIC :: concbno3 !: NO3 half saturation for bacteria |
---|
45 | REAL(wp), PUBLIC :: concbnh4 !: NH4 half saturation for bacteria |
---|
46 | REAL(wp), PUBLIC :: concbpo4 !: PO4 half saturation for bacteria |
---|
47 | REAL(wp), PUBLIC :: xsizedia !: Minimum size criteria for diatoms |
---|
48 | REAL(wp), PUBLIC :: xsizepic !: Minimum size criteria for diatoms |
---|
49 | REAL(wp), PUBLIC :: xsizephy !: Minimum size criteria for nanophyto |
---|
50 | REAL(wp), PUBLIC :: xsizern !: Size ratio for nanophytoplankton |
---|
51 | REAL(wp), PUBLIC :: xsizerp !: Size ratio for nanophytoplankton |
---|
52 | REAL(wp), PUBLIC :: xsizerd !: Size ratio for diatoms |
---|
53 | REAL(wp), PUBLIC :: xksi1 !: half saturation constant for Si uptake |
---|
54 | REAL(wp), PUBLIC :: xksi2 !: half saturation constant for Si/C |
---|
55 | REAL(wp), PUBLIC :: xkdoc !: 2nd half-sat. of DOC remineralization |
---|
56 | REAL(wp), PUBLIC :: concbfe !: Fe half saturation for bacteria |
---|
57 | REAL(wp), PUBLIC :: qfnopt !: optimal Fe quota for nanophyto |
---|
58 | REAL(wp), PUBLIC :: qfpopt !: optimal Fe quota for nanophyto |
---|
59 | REAL(wp), PUBLIC :: qfdopt !: optimal Fe quota for diatoms |
---|
60 | REAL(wp), PUBLIC :: caco3r !: mean rainratio |
---|
61 | REAL(wp), PUBLIC :: qnnmin !: optimal Fe quota for diatoms |
---|
62 | REAL(wp), PUBLIC :: qnnmax !: optimal Fe quota for diatoms |
---|
63 | REAL(wp), PUBLIC :: qpnmin !: optimal Fe quota for diatoms |
---|
64 | REAL(wp), PUBLIC :: qpnmax !: optimal Fe quota for diatoms |
---|
65 | REAL(wp), PUBLIC :: qnpmin !: optimal Fe quota for diatoms |
---|
66 | REAL(wp), PUBLIC :: qnpmax !: optimal Fe quota for diatoms |
---|
67 | REAL(wp), PUBLIC :: qppmin !: optimal Fe quota for diatoms |
---|
68 | REAL(wp), PUBLIC :: qppmax !: optimal Fe quota for diatoms |
---|
69 | REAL(wp), PUBLIC :: qndmin !: optimal Fe quota for diatoms |
---|
70 | REAL(wp), PUBLIC :: qndmax !: optimal Fe quota for diatoms |
---|
71 | REAL(wp), PUBLIC :: qpdmin !: optimal Fe quota for diatoms |
---|
72 | REAL(wp), PUBLIC :: qpdmax !: optimal Fe quota for diatoms |
---|
73 | REAL(wp), PUBLIC :: qfnmax !: optimal Fe quota for diatoms |
---|
74 | REAL(wp), PUBLIC :: qfpmax !: optimal Fe quota for diatoms |
---|
75 | REAL(wp), PUBLIC :: qfdmax !: optimal Fe quota for diatoms |
---|
76 | REAL(wp), PUBLIC :: zpsinh4 |
---|
77 | REAL(wp), PUBLIC :: zpsino3 |
---|
78 | REAL(wp), PUBLIC :: zpsiuptk |
---|
79 | |
---|
80 | !!* Allometric variations of the quotas |
---|
81 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqnnmin !: ??? |
---|
82 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqnnmax !: ??? |
---|
83 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqpnmin !: ??? |
---|
84 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqpnmax !: ??? |
---|
85 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqnpmin !: ??? |
---|
86 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqnpmax !: ??? |
---|
87 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqppmin !: ??? |
---|
88 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqppmax !: ??? |
---|
89 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqndmin !: ??? |
---|
90 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqndmax !: ??? |
---|
91 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqpdmin !: ??? |
---|
92 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xqpdmax !: ??? |
---|
93 | |
---|
94 | !!* Phytoplankton limitation terms |
---|
95 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnanono3 !: ??? |
---|
96 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiatno3 !: ??? |
---|
97 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnanonh4 !: ??? |
---|
98 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiatnh4 !: ??? |
---|
99 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnanopo4 !: ??? |
---|
100 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiatpo4 !: ??? |
---|
101 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimphy !: ??? |
---|
102 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimdia !: ??? |
---|
103 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimnfe !: ??? |
---|
104 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimdfe !: ??? |
---|
105 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimsi !: ??? |
---|
106 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimbac !: ?? |
---|
107 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimbacl !: ?? |
---|
108 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xpicono3 !: ??? |
---|
109 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xpiconh4 !: ??? |
---|
110 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xpicopo4 !: ??? |
---|
111 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnanodop !: ??? |
---|
112 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xpicodop !: ??? |
---|
113 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiatdop !: ??? |
---|
114 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnanofer !: ??? |
---|
115 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xpicofer !: ??? |
---|
116 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiatfer !: ??? |
---|
117 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimpic !: ??? |
---|
118 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimpfe !: ??? |
---|
119 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: fvnuptk |
---|
120 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: fvpuptk |
---|
121 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: fvduptk |
---|
122 | |
---|
123 | ! Coefficient for iron limitation |
---|
124 | REAL(wp) :: xcoef1 = 0.00167 / 55.85 |
---|
125 | REAL(wp) :: xcoef2 = 1.21E-5 * 14. / 55.85 / 7.625 * 0.5 * 1.5 |
---|
126 | REAL(wp) :: xcoef3 = 1.15E-4 * 14. / 55.85 / 7.625 * 0.5 |
---|
127 | !!* Substitution |
---|
128 | # include "top_substitute.h90" |
---|
129 | !!---------------------------------------------------------------------- |
---|
130 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
131 | !! $Id: p4zlim.F90 3160 2011-11-20 14:27:18Z cetlod $ |
---|
132 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
133 | !!---------------------------------------------------------------------- |
---|
134 | |
---|
135 | CONTAINS |
---|
136 | |
---|
137 | SUBROUTINE p5z_lim( kt, knt ) |
---|
138 | !!--------------------------------------------------------------------- |
---|
139 | !! *** ROUTINE p5z_lim *** |
---|
140 | !! |
---|
141 | !! ** Purpose : Compute the co-limitations by the various nutrients |
---|
142 | !! for the various phytoplankton species |
---|
143 | !! |
---|
144 | !! ** Method : - ??? |
---|
145 | !!--------------------------------------------------------------------- |
---|
146 | ! |
---|
147 | INTEGER, INTENT(in) :: kt, knt |
---|
148 | ! |
---|
149 | INTEGER :: ji, jj, jk |
---|
150 | REAL(wp) :: zlim1, zlim2, zlim3, zlim4, zno3, zferlim |
---|
151 | REAL(wp) :: z1_trndia, z1_trnpic, z1_trnphy, ztem1, ztem2, zetot1 |
---|
152 | REAL(wp) :: zratio, zration, zratiof, znutlim, zfalim |
---|
153 | REAL(wp) :: zconc1d, zconc1dnh4, zconc0n, zconc0nnh4, zconc0npo4, zconc0dpo4 |
---|
154 | REAL(wp) :: zconc0p, zconc0pnh4, zconc0ppo4, zconcpfe, zconcnfe, zconcdfe |
---|
155 | REAL(wp) :: fanano, fananop, fananof, fadiat, fadiatp, fadiatf |
---|
156 | REAL(wp) :: fapico, fapicop, fapicof |
---|
157 | REAL(wp) :: zrpho, zrass, zcoef, zfuptk, zratchl |
---|
158 | REAL(wp) :: zfvn, zfvp, zfvf, zsizen, zsizep, zsized, znanochl, zpicochl, zdiatchl |
---|
159 | REAL(wp) :: zqfemn, zqfemp, zqfemd, zbactno3, zbactnh4 |
---|
160 | !!--------------------------------------------------------------------- |
---|
161 | ! |
---|
162 | IF( nn_timing == 1 ) CALL timing_start('p5z_lim') |
---|
163 | ! |
---|
164 | zratchl = 6.0 |
---|
165 | ! |
---|
166 | DO jk = 1, jpkm1 |
---|
167 | DO jj = 1, jpj |
---|
168 | DO ji = 1, jpi |
---|
169 | ! |
---|
170 | ! Tuning of the iron concentration to a minimum level that is set to the detection limit |
---|
171 | !------------------------------------- |
---|
172 | zno3 = trb(ji,jj,jk,jpno3) / 40.e-6 |
---|
173 | zferlim = MAX( 3e-11 * zno3 * zno3, 5e-12 ) |
---|
174 | zferlim = MIN( zferlim, 7e-11 ) |
---|
175 | trb(ji,jj,jk,jpfer) = MAX( trb(ji,jj,jk,jpfer), zferlim ) |
---|
176 | |
---|
177 | ! Computation of the mean relative size of each community |
---|
178 | ! ------------------------------------------------------- |
---|
179 | z1_trnphy = 1. / ( trb(ji,jj,jk,jpphy) + rtrn ) |
---|
180 | z1_trnpic = 1. / ( trb(ji,jj,jk,jppic) + rtrn ) |
---|
181 | z1_trndia = 1. / ( trb(ji,jj,jk,jpdia) + rtrn ) |
---|
182 | znanochl = trb(ji,jj,jk,jpnch) * z1_trnphy |
---|
183 | zpicochl = trb(ji,jj,jk,jppch) * z1_trnpic |
---|
184 | zdiatchl = trb(ji,jj,jk,jpdch) * z1_trndia |
---|
185 | |
---|
186 | ! Computation of a variable Ks for iron on diatoms taking into account |
---|
187 | ! that increasing biomass is made of generally bigger cells |
---|
188 | !------------------------------------------------ |
---|
189 | zsized = sized(ji,jj,jk)**0.81 |
---|
190 | zconcdfe = concdfer * zsized |
---|
191 | zconc1d = concdno3 * zsized |
---|
192 | zconc1dnh4 = concdnh4 * zsized |
---|
193 | zconc0dpo4 = concdpo4 * zsized |
---|
194 | |
---|
195 | zsizep = 1. |
---|
196 | zconcpfe = concpfer * zsizep |
---|
197 | zconc0p = concpno3 * zsizep |
---|
198 | zconc0pnh4 = concpnh4 * zsizep |
---|
199 | zconc0ppo4 = concppo4 * zsizep |
---|
200 | |
---|
201 | zsizen = 1. |
---|
202 | zconcnfe = concnfer * zsizen |
---|
203 | zconc0n = concnno3 * zsizen |
---|
204 | zconc0nnh4 = concnnh4 * zsizen |
---|
205 | zconc0npo4 = concnpo4 * zsizen |
---|
206 | |
---|
207 | ! Allometric variations of the minimum and maximum quotas |
---|
208 | ! From Talmy et al. (2014) and Maranon et al. (2013) |
---|
209 | ! ------------------------------------------------------- |
---|
210 | xqnnmin(ji,jj,jk) = qnnmin |
---|
211 | xqnnmax(ji,jj,jk) = qnnmax |
---|
212 | xqndmin(ji,jj,jk) = qndmin * sized(ji,jj,jk)**(-0.27) |
---|
213 | xqndmax(ji,jj,jk) = qndmax |
---|
214 | xqnpmin(ji,jj,jk) = qnpmin |
---|
215 | xqnpmax(ji,jj,jk) = qnpmax |
---|
216 | |
---|
217 | ! Computation of the optimal allocation parameters |
---|
218 | ! Based on the different papers by Pahlow et al., and Smith et al. |
---|
219 | ! ----------------------------------------------------------------- |
---|
220 | znutlim = MAX( trb(ji,jj,jk,jpnh4) / zconc0nnh4, & |
---|
221 | & trb(ji,jj,jk,jpno3) / zconc0n) |
---|
222 | fanano = MAX(0.01, MIN(0.99, 1. / ( SQRT(znutlim) + 1.) ) ) |
---|
223 | znutlim = trb(ji,jj,jk,jppo4) / zconc0npo4 |
---|
224 | fananop = MAX(0.01, MIN(0.99, 1. / ( SQRT(znutlim) + 1.) ) ) |
---|
225 | znutlim = biron(ji,jj,jk) / zconcnfe |
---|
226 | fananof = MAX(0.01, MIN(0.99, 1. / ( SQRT(znutlim) + 1.) ) ) |
---|
227 | znutlim = MAX( trb(ji,jj,jk,jpnh4) / zconc0pnh4, & |
---|
228 | & trb(ji,jj,jk,jpno3) / zconc0p) |
---|
229 | fapico = MAX(0.01, MIN(0.99, 1. / ( SQRT(znutlim) + 1.) ) ) |
---|
230 | znutlim = trb(ji,jj,jk,jppo4) / zconc0ppo4 |
---|
231 | fapicop = MAX(0.01, MIN(0.99, 1. / ( SQRT(znutlim) + 1.) ) ) |
---|
232 | znutlim = biron(ji,jj,jk) / zconcpfe |
---|
233 | fapicof = MAX(0.01, MIN(0.99, 1. / ( SQRT(znutlim) + 1.) ) ) |
---|
234 | znutlim = MAX( trb(ji,jj,jk,jpnh4) / zconc1dnh4, & |
---|
235 | & trb(ji,jj,jk,jpno3) / zconc1d ) |
---|
236 | fadiat = MAX(0.01, MIN(0.99, 1. / ( SQRT(znutlim) + 1.) ) ) |
---|
237 | znutlim = trb(ji,jj,jk,jppo4) / zconc0dpo4 |
---|
238 | fadiatp = MAX(0.01, MIN(0.99, 1. / ( SQRT(znutlim) + 1.) ) ) |
---|
239 | znutlim = biron(ji,jj,jk) / zconcdfe |
---|
240 | fadiatf = MAX(0.01, MIN(0.99, 1. / ( SQRT(znutlim) + 1.) ) ) |
---|
241 | ! |
---|
242 | ! Michaelis-Menten Limitation term for nutrients Small bacteria |
---|
243 | ! ------------------------------------------------------------- |
---|
244 | zbactnh4 = trb(ji,jj,jk,jpnh4) / ( concbnh4 + trb(ji,jj,jk,jpnh4) ) |
---|
245 | zbactno3 = trb(ji,jj,jk,jpno3) / ( concbno3 + trb(ji,jj,jk,jpno3) ) * (1. - zbactnh4) |
---|
246 | ! |
---|
247 | zlim1 = zbactno3 + zbactnh4 |
---|
248 | zlim2 = trb(ji,jj,jk,jppo4) / ( trb(ji,jj,jk,jppo4) + concbpo4) |
---|
249 | zlim3 = biron(ji,jj,jk) / ( concbfe + biron(ji,jj,jk) ) |
---|
250 | zlim4 = trb(ji,jj,jk,jpdoc) / ( xkdoc + trb(ji,jj,jk,jpdoc) ) |
---|
251 | xlimbacl(ji,jj,jk) = MIN( zlim1, zlim2, zlim3 ) |
---|
252 | xlimbac (ji,jj,jk) = xlimbacl(ji,jj,jk) * zlim4 |
---|
253 | ! |
---|
254 | ! Michaelis-Menten Limitation term for nutrients Small flagellates |
---|
255 | ! ----------------------------------------------- |
---|
256 | zfalim = (1.-fanano) / fanano |
---|
257 | xnanonh4(ji,jj,jk) = (1. - fanano) * trb(ji,jj,jk,jpnh4) / ( zfalim * zconc0nnh4 + trb(ji,jj,jk,jpnh4) ) |
---|
258 | xnanono3(ji,jj,jk) = (1. - fanano) * trb(ji,jj,jk,jpno3) / ( zfalim * zconc0n + trb(ji,jj,jk,jpno3) ) & |
---|
259 | & * (1. - xnanonh4(ji,jj,jk)) |
---|
260 | ! |
---|
261 | zfalim = (1.-fananop) / fananop |
---|
262 | xnanopo4(ji,jj,jk) = (1. - fananop) * trb(ji,jj,jk,jppo4) / ( trb(ji,jj,jk,jppo4) + zfalim * zconc0npo4 ) |
---|
263 | xnanodop(ji,jj,jk) = trb(ji,jj,jk,jpdop) / ( trb(ji,jj,jk,jpdop) + xkdoc ) & |
---|
264 | & * ( 1.0 - xnanopo4(ji,jj,jk) ) |
---|
265 | xnanodop(ji,jj,jk) = 0. |
---|
266 | ! |
---|
267 | zfalim = (1.-fananof) / fananof |
---|
268 | xnanofer(ji,jj,jk) = (1. - fananof) * biron(ji,jj,jk) / ( biron(ji,jj,jk) + zfalim * zconcnfe ) |
---|
269 | ! |
---|
270 | zratiof = trb(ji,jj,jk,jpnfe) * z1_trnphy |
---|
271 | zqfemn = xcoef1 * znanochl + xcoef2 + xcoef3 * xnanono3(ji,jj,jk) |
---|
272 | ! |
---|
273 | zration = trb(ji,jj,jk,jpnph) * z1_trnphy |
---|
274 | zration = MIN(xqnnmax(ji,jj,jk), MAX( 2. * xqnnmin(ji,jj,jk), zration )) |
---|
275 | fvnuptk(ji,jj,jk) = 1. / zpsiuptk * rno3 * 2. * xqnnmin(ji,jj,jk) / (zration + rtrn) & |
---|
276 | & * MAX(0., (1. - zratchl * znanochl / 12. ) ) |
---|
277 | ! |
---|
278 | zlim1 = max(0., (zration - 2. * xqnnmin(ji,jj,jk) ) & |
---|
279 | & / (xqnnmax(ji,jj,jk) - 2. * xqnnmin(ji,jj,jk) ) ) * xqnnmax(ji,jj,jk) & |
---|
280 | & / (zration + rtrn) |
---|
281 | zlim3 = MAX( 0.,( zratiof - zqfemn ) / qfnopt ) |
---|
282 | xlimnfe(ji,jj,jk) = MIN( 1., zlim3 ) |
---|
283 | xlimphy(ji,jj,jk) = MIN( 1., zlim1, zlim3 ) |
---|
284 | ! |
---|
285 | ! Michaelis-Menten Limitation term for nutrients picophytoplankton |
---|
286 | ! ---------------------------------------------------------------- |
---|
287 | zfalim = (1.-fapico) / fapico |
---|
288 | xpiconh4(ji,jj,jk) = (1. - fapico) * trb(ji,jj,jk,jpnh4) / ( zfalim * zconc0pnh4 + trb(ji,jj,jk,jpnh4) ) |
---|
289 | xpicono3(ji,jj,jk) = (1. - fapico) * trb(ji,jj,jk,jpno3) / ( zfalim * zconc0p + trb(ji,jj,jk,jpno3) ) & |
---|
290 | & * (1. - xpiconh4(ji,jj,jk)) |
---|
291 | ! |
---|
292 | zfalim = (1.-fapicop) / fapicop |
---|
293 | xpicopo4(ji,jj,jk) = (1. - fapicop) * trb(ji,jj,jk,jppo4) / ( trb(ji,jj,jk,jppo4) + zfalim * zconc0ppo4 ) |
---|
294 | xpicodop(ji,jj,jk) = trb(ji,jj,jk,jpdop) / ( trb(ji,jj,jk,jpdop) + xkdoc ) & |
---|
295 | & * ( 1.0 - xpicopo4(ji,jj,jk) ) |
---|
296 | xpicodop(ji,jj,jk) = 0. |
---|
297 | ! |
---|
298 | zfalim = (1.-fapicof) / fapicof |
---|
299 | xpicofer(ji,jj,jk) = (1. - fapicof) * biron(ji,jj,jk) / ( biron(ji,jj,jk) + zfalim * zconcpfe ) |
---|
300 | ! |
---|
301 | zratiof = trb(ji,jj,jk,jppfe) * z1_trnpic |
---|
302 | zqfemp = xcoef1 * zpicochl + xcoef2 + xcoef3 * xpicono3(ji,jj,jk) |
---|
303 | ! |
---|
304 | zration = trb(ji,jj,jk,jpnpi) * z1_trnpic |
---|
305 | zration = MIN(xqnpmax(ji,jj,jk), MAX( 2. * xqnpmin(ji,jj,jk), zration )) |
---|
306 | fvpuptk(ji,jj,jk) = 1. / zpsiuptk * rno3 * 2. * xqnpmin(ji,jj,jk) / (zration + rtrn) & |
---|
307 | & * MAX(0., (1. - zratchl * zpicochl / 12. ) ) |
---|
308 | ! |
---|
309 | zlim1 = max(0., (zration - 2. * xqnpmin(ji,jj,jk) ) & |
---|
310 | & / (xqnpmax(ji,jj,jk) - 2. * xqnpmin(ji,jj,jk) ) ) * xqnpmax(ji,jj,jk) & |
---|
311 | & / (zration + rtrn) |
---|
312 | zlim3 = MAX( 0.,( zratiof - zqfemp ) / qfpopt ) |
---|
313 | xlimpfe(ji,jj,jk) = MIN( 1., zlim3 ) |
---|
314 | xlimpic(ji,jj,jk) = MIN( 1., zlim1, zlim3 ) |
---|
315 | ! |
---|
316 | ! Michaelis-Menten Limitation term for nutrients Diatoms |
---|
317 | ! ------------------------------------------------------ |
---|
318 | zfalim = (1.-fadiat) / fadiat |
---|
319 | xdiatnh4(ji,jj,jk) = (1. - fadiat) * trb(ji,jj,jk,jpnh4) / ( zfalim * zconc1dnh4 + trb(ji,jj,jk,jpnh4) ) |
---|
320 | xdiatno3(ji,jj,jk) = (1. - fadiat) * trb(ji,jj,jk,jpno3) / ( zfalim * zconc1d + trb(ji,jj,jk,jpno3) ) & |
---|
321 | & * (1. - xdiatnh4(ji,jj,jk)) |
---|
322 | ! |
---|
323 | zfalim = (1.-fadiatp) / fadiatp |
---|
324 | xdiatpo4(ji,jj,jk) = (1. - fadiatp) * trb(ji,jj,jk,jppo4) / ( trb(ji,jj,jk,jppo4) + zfalim * zconc0dpo4 ) |
---|
325 | xdiatdop(ji,jj,jk) = trb(ji,jj,jk,jpdop) / ( trb(ji,jj,jk,jpdop) + xkdoc ) & |
---|
326 | & * ( 1.0 - xdiatpo4(ji,jj,jk) ) |
---|
327 | xdiatdop(ji,jj,jk) = 0. |
---|
328 | ! |
---|
329 | zfalim = (1.-fadiatf) / fadiatf |
---|
330 | xdiatfer(ji,jj,jk) = (1. - fadiatf) * biron(ji,jj,jk) / ( biron(ji,jj,jk) + zfalim * zconcdfe ) |
---|
331 | ! |
---|
332 | zratiof = trb(ji,jj,jk,jpdfe) * z1_trndia |
---|
333 | zqfemd = xcoef1 * zdiatchl + xcoef2 + xcoef3 * xdiatno3(ji,jj,jk) |
---|
334 | ! |
---|
335 | zration = trb(ji,jj,jk,jpndi) * z1_trndia |
---|
336 | zration = MIN(xqndmax(ji,jj,jk), MAX( 2. * xqndmin(ji,jj,jk), zration )) |
---|
337 | fvduptk(ji,jj,jk) = 1. / zpsiuptk * rno3 * 2. * xqndmin(ji,jj,jk) / (zration + rtrn) & |
---|
338 | & * MAX(0., (1. - zratchl * zdiatchl / 12. ) ) |
---|
339 | ! |
---|
340 | zlim1 = max(0., (zration - 2. * xqndmin(ji,jj,jk) ) & |
---|
341 | & / (xqndmax(ji,jj,jk) - 2. * xqndmin(ji,jj,jk) ) ) & |
---|
342 | & * xqndmax(ji,jj,jk) / (zration + rtrn) |
---|
343 | zlim3 = trb(ji,jj,jk,jpsil) / ( trb(ji,jj,jk,jpsil) + xksi(ji,jj) ) |
---|
344 | zlim4 = MAX( 0., ( zratiof - zqfemd ) / qfdopt ) |
---|
345 | xlimdfe(ji,jj,jk) = MIN( 1., zlim4 ) |
---|
346 | xlimdia(ji,jj,jk) = MIN( 1., zlim1, zlim3, zlim4 ) |
---|
347 | xlimsi(ji,jj,jk) = MIN( zlim1, zlim4 ) |
---|
348 | END DO |
---|
349 | END DO |
---|
350 | END DO |
---|
351 | ! |
---|
352 | ! Compute the phosphorus quota values. It is based on Litchmann et al., 2004 and Daines et al, 2013. |
---|
353 | ! The relative contribution of three fonctional pools are computed: light harvesting apparatus, |
---|
354 | ! nutrient uptake pool and assembly machinery. DNA is assumed to represent 1% of the dry mass of |
---|
355 | ! phytoplankton (see Daines et al., 2013). |
---|
356 | ! -------------------------------------------------------------------------------------------------- |
---|
357 | DO jk = 1, jpkm1 |
---|
358 | DO jj = 1, jpj |
---|
359 | DO ji = 1, jpi |
---|
360 | ! Size estimation of nanophytoplankton |
---|
361 | ! ------------------------------------ |
---|
362 | zfvn = 2. * fvnuptk(ji,jj,jk) |
---|
363 | sizen(ji,jj,jk) = MAX(1., MIN(xsizern, 1.0 / ( MAX(rtrn, zfvn) ) ) ) |
---|
364 | |
---|
365 | ! N/P ratio of nanophytoplankton |
---|
366 | ! ------------------------------ |
---|
367 | zfuptk = 0.23 * zfvn |
---|
368 | zrpho = 2.24 * trb(ji,jj,jk,jpnch) / ( trb(ji,jj,jk,jpnph) * rno3 * 15. + rtrn ) |
---|
369 | zrass = 1. - 0.2 - zrpho - zfuptk |
---|
370 | xqpnmax(ji,jj,jk) = ( zfuptk + zrpho ) * 0.0128 * 16. + zrass * 1./ 7.2 * 16. |
---|
371 | xqpnmax(ji,jj,jk) = xqpnmax(ji,jj,jk) * trb(ji,jj,jk,jpnph) / ( trb(ji,jj,jk,jpphy) + rtrn ) + 0.13 |
---|
372 | xqpnmin(ji,jj,jk) = 0.13 + 0.23 * 0.0128 * 16. |
---|
373 | |
---|
374 | ! Size estimation of picophytoplankton |
---|
375 | ! ------------------------------------ |
---|
376 | zfvn = 2. * fvpuptk(ji,jj,jk) |
---|
377 | sizep(ji,jj,jk) = MAX(1., MIN(xsizerp, 1.0 / ( MAX(rtrn, zfvn) ) ) ) |
---|
378 | |
---|
379 | ! N/P ratio of picophytoplankton |
---|
380 | ! ------------------------------ |
---|
381 | zfuptk = 0.35 * zfvn |
---|
382 | zrpho = 2.24 * trb(ji,jj,jk,jppch) / ( trb(ji,jj,jk,jpnpi) * rno3 * 15. + rtrn ) |
---|
383 | zrass = 1. - 0.4 - zrpho - zfuptk |
---|
384 | xqppmax(ji,jj,jk) = (zrpho + zfuptk) * 0.0128 * 16. + zrass * 1./ 9. * 16. |
---|
385 | xqppmax(ji,jj,jk) = xqppmax(ji,jj,jk) * trb(ji,jj,jk,jpnpi) / ( trb(ji,jj,jk,jppic) + rtrn ) + 0.13 |
---|
386 | xqppmin(ji,jj,jk) = 0.13 |
---|
387 | |
---|
388 | ! Size estimation of diatoms |
---|
389 | ! -------------------------- |
---|
390 | zfvn = 2. * fvduptk(ji,jj,jk) |
---|
391 | sized(ji,jj,jk) = MAX(1., MIN(xsizerd, 1.0 / ( MAX(rtrn, zfvn) ) ) ) |
---|
392 | zcoef = trb(ji,jj,jk,jpdia) - MIN(xsizedia, trb(ji,jj,jk,jpdia) ) |
---|
393 | sized(ji,jj,jk) = 1. + xsizerd * zcoef *1E6 / ( 1. + zcoef * 1E6 ) |
---|
394 | |
---|
395 | ! N/P ratio of diatoms |
---|
396 | ! -------------------- |
---|
397 | zfuptk = 0.2 * zfvn |
---|
398 | zrpho = 2.24 * trb(ji,jj,jk,jpdch) / ( trb(ji,jj,jk,jpndi) * rno3 * 15. + rtrn ) |
---|
399 | zrass = 1. - 0.2 - zrpho - zfuptk |
---|
400 | xqpdmax(ji,jj,jk) = ( zfuptk + zrpho ) * 0.0128 * 16. + zrass * 1./ 7.2 * 16. |
---|
401 | xqpdmax(ji,jj,jk) = xqpdmax(ji,jj,jk) * trb(ji,jj,jk,jpndi) / ( trb(ji,jj,jk,jpdia) + rtrn ) + 0.13 |
---|
402 | xqpdmin(ji,jj,jk) = 0.13 + 0.2 * 0.0128 * 16. |
---|
403 | |
---|
404 | END DO |
---|
405 | END DO |
---|
406 | END DO |
---|
407 | |
---|
408 | ! Compute the fraction of nanophytoplankton that is made of calcifiers |
---|
409 | ! -------------------------------------------------------------------- |
---|
410 | DO jk = 1, jpkm1 |
---|
411 | DO jj = 1, jpj |
---|
412 | DO ji = 1, jpi |
---|
413 | zlim1 = trb(ji,jj,jk,jpnh4) / ( trb(ji,jj,jk,jpnh4) + concnnh4 ) + trb(ji,jj,jk,jpno3) & |
---|
414 | & / ( trb(ji,jj,jk,jpno3) + concnno3 ) * ( 1.0 - trb(ji,jj,jk,jpnh4) & |
---|
415 | & / ( trb(ji,jj,jk,jpnh4) + concnnh4 ) ) |
---|
416 | zlim2 = trb(ji,jj,jk,jppo4) / ( trb(ji,jj,jk,jppo4) + concnpo4 ) |
---|
417 | zlim3 = trb(ji,jj,jk,jpfer) / ( trb(ji,jj,jk,jpfer) + 5.E-11 ) |
---|
418 | ztem1 = MAX( 0., tsn(ji,jj,jk,jp_tem) ) |
---|
419 | ztem2 = tsn(ji,jj,jk,jp_tem) - 10. |
---|
420 | zetot1 = MAX( 0., etot(ji,jj,jk) - 1.) / ( 4. + etot(ji,jj,jk) ) * 20. / ( 20. + etot(ji,jj,jk) ) |
---|
421 | |
---|
422 | ! xfracal(ji,jj,jk) = caco3r * MIN( zlim1, zlim2, zlim3 ) & |
---|
423 | xfracal(ji,jj,jk) = caco3r & |
---|
424 | & * ztem1 / ( 1. + ztem1 ) * MAX( 1., trb(ji,jj,jk,jpphy)*1E6 ) & |
---|
425 | & * ( 1. + EXP(-ztem2 * ztem2 / 25. ) ) & |
---|
426 | & * zetot1 * MIN( 1., 50. / ( hmld(ji,jj) + rtrn ) ) |
---|
427 | xfracal(ji,jj,jk) = MAX( 0.02, MIN( 0.8 , xfracal(ji,jj,jk) ) ) |
---|
428 | END DO |
---|
429 | END DO |
---|
430 | END DO |
---|
431 | ! |
---|
432 | IF( lk_iomput .AND. knt == nrdttrc ) THEN ! save output diagnostics |
---|
433 | IF( iom_use( "xfracal" ) ) CALL iom_put( "xfracal", xfracal(:,:,:) * tmask(:,:,:) ) ! euphotic layer deptht |
---|
434 | IF( iom_use( "LNnut" ) ) CALL iom_put( "LNnut" , xlimphy(:,:,:) * tmask(:,:,:) ) ! Nutrient limitation term |
---|
435 | IF( iom_use( "LPnut" ) ) CALL iom_put( "LPnut" , xlimpic(:,:,:) * tmask(:,:,:) ) ! Nutrient limitation term |
---|
436 | IF( iom_use( "LDnut" ) ) CALL iom_put( "LDnut" , xlimdia(:,:,:) * tmask(:,:,:) ) ! Nutrient limitation term |
---|
437 | IF( iom_use( "LNFe" ) ) CALL iom_put( "LNFe" , xlimnfe(:,:,:) * tmask(:,:,:) ) ! Iron limitation term |
---|
438 | IF( iom_use( "LPFe" ) ) CALL iom_put( "LPFe" , xlimpfe(:,:,:) * tmask(:,:,:) ) ! Iron limitation term |
---|
439 | IF( iom_use( "LDFe" ) ) CALL iom_put( "LDFe" , xlimdfe(:,:,:) * tmask(:,:,:) ) ! Iron limitation term |
---|
440 | IF( iom_use( "SIZEN" ) ) CALL iom_put( "SIZEN" , sizen(:,:,:) * tmask(:,:,:) ) ! Iron limitation term |
---|
441 | IF( iom_use( "SIZEP" ) ) CALL iom_put( "SIZEP" , sizep(:,:,:) * tmask(:,:,:) ) ! Iron limitation term |
---|
442 | IF( iom_use( "SIZED" ) ) CALL iom_put( "SIZED" , sized(:,:,:) * tmask(:,:,:) ) ! Iron limitation term |
---|
443 | ENDIF |
---|
444 | ! |
---|
445 | IF( nn_timing == 1 ) CALL timing_stop('p5z_lim') |
---|
446 | ! |
---|
447 | END SUBROUTINE p5z_lim |
---|
448 | |
---|
449 | SUBROUTINE p5z_lim_init |
---|
450 | |
---|
451 | !!---------------------------------------------------------------------- |
---|
452 | !! *** ROUTINE p5z_lim_init *** |
---|
453 | !! |
---|
454 | !! ** Purpose : Initialization of nutrient limitation parameters |
---|
455 | !! |
---|
456 | !! ** Method : Read the nampislim and nampisquota namelists and check |
---|
457 | !! the parameters called at the first timestep (nittrc000) |
---|
458 | !! |
---|
459 | !! ** input : Namelist nampislim |
---|
460 | !! |
---|
461 | !!---------------------------------------------------------------------- |
---|
462 | |
---|
463 | NAMELIST/nampislim/ concnno3, concpno3, concdno3, concnnh4, concpnh4, concdnh4, & |
---|
464 | & concnfer, concpfer, concdfer, concbfe, concnpo4, concppo4, & |
---|
465 | & concdpo4, concbno3, concbnh4, concbpo4, xsizedia, xsizepic, & |
---|
466 | & xsizephy, xsizern, xsizerp, xsizerd, xksi1, xksi2, xkdoc, & |
---|
467 | & caco3r |
---|
468 | |
---|
469 | NAMELIST/nampisquota/ qnnmin, qnnmax, qpnmin, qpnmax, qnpmin, qnpmax, qppmin, & |
---|
470 | & qppmax, qndmin, qndmax, qpdmin, qpdmax, qfnmax, qfpmax, qfdmax, & |
---|
471 | & qfnopt, qfpopt, qfdopt |
---|
472 | |
---|
473 | |
---|
474 | INTEGER :: ios ! Local integer output status for namelist read |
---|
475 | |
---|
476 | REWIND( numnatp_ref ) ! Namelist nampislim in reference namelist : Pisces nutrient limitation parameters |
---|
477 | READ ( numnatp_ref, nampislim, IOSTAT = ios, ERR = 901) |
---|
478 | 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampislim in reference namelist', lwp ) |
---|
479 | |
---|
480 | REWIND( numnatp_cfg ) ! Namelist nampislim in configuration namelist : Pisces nutrient limitation parameters |
---|
481 | READ ( numnatp_cfg, nampislim, IOSTAT = ios, ERR = 902 ) |
---|
482 | 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampislim in configuration namelist', lwp ) |
---|
483 | IF(lwm) WRITE ( numonp, nampislim ) |
---|
484 | |
---|
485 | IF(lwp) THEN ! control print |
---|
486 | WRITE(numout,*) ' ' |
---|
487 | WRITE(numout,*) ' Namelist parameters for nutrient limitations, nampislim' |
---|
488 | WRITE(numout,*) ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' |
---|
489 | WRITE(numout,*) ' mean rainratio caco3r = ', caco3r |
---|
490 | WRITE(numout,*) ' NO3 half saturation of nanophyto concnno3 = ', concnno3 |
---|
491 | WRITE(numout,*) ' NO3 half saturation of picophyto concpno3 = ', concpno3 |
---|
492 | WRITE(numout,*) ' NO3 half saturation of diatoms concdno3 = ', concdno3 |
---|
493 | WRITE(numout,*) ' NH4 half saturation for phyto concnnh4 = ', concnnh4 |
---|
494 | WRITE(numout,*) ' NH4 half saturation for pico concpnh4 = ', concpnh4 |
---|
495 | WRITE(numout,*) ' NH4 half saturation for diatoms concdnh4 = ', concdnh4 |
---|
496 | WRITE(numout,*) ' PO4 half saturation for phyto concnpo4 = ', concnpo4 |
---|
497 | WRITE(numout,*) ' PO4 half saturation for pico concppo4 = ', concppo4 |
---|
498 | WRITE(numout,*) ' PO4 half saturation for diatoms concdpo4 = ', concdpo4 |
---|
499 | WRITE(numout,*) ' half saturation constant for Si uptake xksi1 = ', xksi1 |
---|
500 | WRITE(numout,*) ' half saturation constant for Si/C xksi2 = ', xksi2 |
---|
501 | WRITE(numout,*) ' half-sat. of DOC remineralization xkdoc = ', xkdoc |
---|
502 | WRITE(numout,*) ' Iron half saturation for nanophyto concnfer = ', concnfer |
---|
503 | WRITE(numout,*) ' Iron half saturation for picophyto concpfer = ', concpfer |
---|
504 | WRITE(numout,*) ' Iron half saturation for diatoms concdfer = ', concdfer |
---|
505 | WRITE(numout,*) ' size ratio for nanophytoplankton xsizern = ', xsizern |
---|
506 | WRITE(numout,*) ' size ratio for picophytoplankton xsizerp = ', xsizerp |
---|
507 | WRITE(numout,*) ' size ratio for diatoms xsizerd = ', xsizerd |
---|
508 | WRITE(numout,*) ' NO3 half saturation of bacteria concbno3 = ', concbno3 |
---|
509 | WRITE(numout,*) ' NH4 half saturation for bacteria concbnh4 = ', concbnh4 |
---|
510 | WRITE(numout,*) ' Minimum size criteria for diatoms xsizedia = ', xsizedia |
---|
511 | WRITE(numout,*) ' Minimum size criteria for picophyto xsizepic = ', xsizepic |
---|
512 | WRITE(numout,*) ' Minimum size criteria for nanophyto xsizephy = ', xsizephy |
---|
513 | WRITE(numout,*) ' Fe half saturation for bacteria concbfe = ', concbfe |
---|
514 | ENDIF |
---|
515 | |
---|
516 | REWIND( numnatp_ref ) ! Namelist nampislim in reference namelist : Pisces nutrient limitation parameters |
---|
517 | READ ( numnatp_ref, nampisquota, IOSTAT = ios, ERR = 903) |
---|
518 | 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisquota in reference namelist', lwp ) |
---|
519 | |
---|
520 | REWIND( numnatp_cfg ) ! Namelist nampislim in configuration namelist : Pisces nutrient limitation parameters |
---|
521 | READ ( numnatp_cfg, nampisquota, IOSTAT = ios, ERR = 904 ) |
---|
522 | 904 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisquota in configuration namelist', lwp ) |
---|
523 | IF(lwm) WRITE ( numonp, nampisquota ) |
---|
524 | |
---|
525 | IF(lwp) THEN ! control print |
---|
526 | WRITE(numout,*) ' ' |
---|
527 | WRITE(numout,*) ' Namelist parameters for nutrient limitations, nampisquota' |
---|
528 | WRITE(numout,*) ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' |
---|
529 | WRITE(numout,*) ' optimal Fe quota for nano. qfnopt = ', qfnopt |
---|
530 | WRITE(numout,*) ' optimal Fe quota for pico. qfpopt = ', qfpopt |
---|
531 | WRITE(numout,*) ' Optimal Fe quota for diatoms qfdopt = ', qfdopt |
---|
532 | WRITE(numout,*) ' Minimal N quota for nano qnnmin = ', qnnmin |
---|
533 | WRITE(numout,*) ' Maximal N quota for nano qnnmax = ', qnnmax |
---|
534 | WRITE(numout,*) ' Minimal P quota for nano qpnmin = ', qpnmin |
---|
535 | WRITE(numout,*) ' Maximal P quota for nano qpnmax = ', qpnmax |
---|
536 | WRITE(numout,*) ' Minimal N quota for pico qnpmin = ', qnpmin |
---|
537 | WRITE(numout,*) ' Maximal N quota for pico qnpmax = ', qnpmax |
---|
538 | WRITE(numout,*) ' Minimal P quota for pico qppmin = ', qppmin |
---|
539 | WRITE(numout,*) ' Maximal P quota for pico qppmax = ', qppmax |
---|
540 | WRITE(numout,*) ' Minimal N quota for diatoms qndmin = ', qndmin |
---|
541 | WRITE(numout,*) ' Maximal N quota for diatoms qndmax = ', qndmax |
---|
542 | WRITE(numout,*) ' Minimal P quota for diatoms qpdmin = ', qpdmin |
---|
543 | WRITE(numout,*) ' Maximal P quota for diatoms qpdmax = ', qpdmax |
---|
544 | WRITE(numout,*) ' Minimal P quota for nanophyto. qfnmax = ', qfnmax |
---|
545 | WRITE(numout,*) ' Minimal P quota for picophyto. qfpmax = ', qfpmax |
---|
546 | WRITE(numout,*) ' Maximal P quota for diatoms qfdmax = ', qfdmax |
---|
547 | ENDIF |
---|
548 | |
---|
549 | zpsino3 = 2.3 * rno3 |
---|
550 | zpsinh4 = 1.8 * rno3 |
---|
551 | zpsiuptk = 2.3 * rno3 |
---|
552 | |
---|
553 | END SUBROUTINE p5z_lim_init |
---|
554 | |
---|
555 | INTEGER FUNCTION p5z_lim_alloc() |
---|
556 | !!---------------------------------------------------------------------- |
---|
557 | !! *** ROUTINE p5z_lim_alloc *** |
---|
558 | !!---------------------------------------------------------------------- |
---|
559 | USE lib_mpp , ONLY: ctl_warn |
---|
560 | INTEGER :: ierr(2) ! Local variables |
---|
561 | !!---------------------------------------------------------------------- |
---|
562 | ierr(:) = 0 |
---|
563 | |
---|
564 | !* Biological arrays for phytoplankton growth |
---|
565 | ALLOCATE( xpicono3(jpi,jpj,jpk), xpiconh4(jpi,jpj,jpk), & |
---|
566 | & xpicopo4(jpi,jpj,jpk), xpicodop(jpi,jpj,jpk), & |
---|
567 | & xnanodop(jpi,jpj,jpk), xdiatdop(jpi,jpj,jpk), & |
---|
568 | & xnanono3(jpi,jpj,jpk), xdiatno3(jpi,jpj,jpk), & |
---|
569 | & xnanonh4(jpi,jpj,jpk), xdiatnh4(jpi,jpj,jpk), & |
---|
570 | & xnanopo4(jpi,jpj,jpk), xdiatpo4(jpi,jpj,jpk), & |
---|
571 | & xlimphy (jpi,jpj,jpk), xlimdia (jpi,jpj,jpk), & |
---|
572 | & xlimnfe (jpi,jpj,jpk), xlimdfe (jpi,jpj,jpk), & |
---|
573 | & xlimbac (jpi,jpj,jpk), xlimbacl(jpi,jpj,jpk), & |
---|
574 | & xnanofer(jpi,jpj,jpk), xdiatfer(jpi,jpj,jpk), & |
---|
575 | & xpicofer(jpi,jpj,jpk), xlimpfe (jpi,jpj,jpk), & |
---|
576 | & fvnuptk (jpi,jpj,jpk), fvduptk (jpi,jpj,jpk), & |
---|
577 | & fvpuptk (jpi,jpj,jpk), xlimpic (jpi,jpj,jpk), & |
---|
578 | & xlimsi (jpi,jpj,jpk), STAT=ierr(1) ) |
---|
579 | |
---|
580 | !* Minimum/maximum quotas of phytoplankton |
---|
581 | ALLOCATE( xqnnmin (jpi,jpj,jpk), xqnnmax(jpi,jpj,jpk), & |
---|
582 | & xqpnmin (jpi,jpj,jpk), xqpnmax(jpi,jpj,jpk), & |
---|
583 | & xqnpmin (jpi,jpj,jpk), xqnpmax(jpi,jpj,jpk), & |
---|
584 | & xqppmin (jpi,jpj,jpk), xqppmax(jpi,jpj,jpk), & |
---|
585 | & xqndmin (jpi,jpj,jpk), xqndmax(jpi,jpj,jpk), & |
---|
586 | & xqpdmin (jpi,jpj,jpk), xqpdmax(jpi,jpj,jpk), STAT=ierr(2) ) |
---|
587 | ! |
---|
588 | p5z_lim_alloc = MAXVAL( ierr ) |
---|
589 | ! |
---|
590 | IF( p5z_lim_alloc /= 0 ) CALL ctl_warn('p5z_lim_alloc : failed to allocate arrays.') |
---|
591 | ! |
---|
592 | END FUNCTION p5z_lim_alloc |
---|
593 | |
---|
594 | #else |
---|
595 | !!====================================================================== |
---|
596 | !! Dummy module : No PISCES bio-model |
---|
597 | !!====================================================================== |
---|
598 | CONTAINS |
---|
599 | SUBROUTINE p5z_lim ! Empty routine |
---|
600 | END SUBROUTINE p5z_lim |
---|
601 | #endif |
---|
602 | |
---|
603 | !!====================================================================== |
---|
604 | END MODULE p5zlim |
---|