1 | MODULE p4zprod |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE p4zprod *** |
---|
4 | !! TOP : Growth Rate of the two phytoplanktons groups |
---|
5 | !!====================================================================== |
---|
6 | !! History : 1.0 ! 2004 (O. Aumont) Original code |
---|
7 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) F90 |
---|
8 | !! 3.4 ! 2011-05 (O. Aumont, C. Ethe) New parameterization of light limitation |
---|
9 | !!---------------------------------------------------------------------- |
---|
10 | #if defined key_pisces |
---|
11 | !!---------------------------------------------------------------------- |
---|
12 | !! 'key_pisces' PISCES bio-model |
---|
13 | !!---------------------------------------------------------------------- |
---|
14 | !! p4z_prod : Compute the growth Rate of the two phytoplanktons groups |
---|
15 | !! p4z_prod_init : Initialization of the parameters for growth |
---|
16 | !! p4z_prod_alloc : Allocate variables for growth |
---|
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 p4zopt ! optical model |
---|
22 | USE p4zlim ! Co-limitations of differents nutrients |
---|
23 | USE prtctl_trc ! print control for debugging |
---|
24 | USE iom ! I/O manager |
---|
25 | |
---|
26 | IMPLICIT NONE |
---|
27 | PRIVATE |
---|
28 | |
---|
29 | PUBLIC p4z_prod ! called in p4zbio.F90 |
---|
30 | PUBLIC p4z_prod_init ! called in trcsms_pisces.F90 |
---|
31 | PUBLIC p4z_prod_alloc |
---|
32 | |
---|
33 | !! * Shared module variables |
---|
34 | LOGICAL , PUBLIC :: ln_newprod !: |
---|
35 | REAL(wp), PUBLIC :: pislope !: |
---|
36 | REAL(wp), PUBLIC :: pislope2 !: |
---|
37 | REAL(wp), PUBLIC :: xadap !: |
---|
38 | REAL(wp), PUBLIC :: excret !: |
---|
39 | REAL(wp), PUBLIC :: excret2 !: |
---|
40 | REAL(wp), PUBLIC :: bresp !: |
---|
41 | REAL(wp), PUBLIC :: chlcnm !: |
---|
42 | REAL(wp), PUBLIC :: chlcdm !: |
---|
43 | REAL(wp), PUBLIC :: chlcmin !: |
---|
44 | REAL(wp), PUBLIC :: fecnm !: |
---|
45 | REAL(wp), PUBLIC :: fecdm !: |
---|
46 | REAL(wp), PUBLIC :: grosip !: |
---|
47 | #if defined key_gas |
---|
48 | REAL(wp), PUBLIC :: xnanoco !: |
---|
49 | REAL(wp), PUBLIC :: xdiaco !: |
---|
50 | REAL(wp), PUBLIC :: xnanoIsp !: |
---|
51 | REAL(wp), PUBLIC :: xdiaIsp !: |
---|
52 | #endif |
---|
53 | |
---|
54 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: prmax !: optimal production = f(temperature) |
---|
55 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: quotan !: proxy of N quota in Nanophyto |
---|
56 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: quotad !: proxy of N quota in diatomee |
---|
57 | |
---|
58 | REAL(wp) :: r1_rday !: 1 / rday |
---|
59 | REAL(wp) :: texcret !: 1 - excret |
---|
60 | REAL(wp) :: texcret2 !: 1 - excret2 |
---|
61 | |
---|
62 | |
---|
63 | !!* Substitution |
---|
64 | # include "top_substitute.h90" |
---|
65 | !!---------------------------------------------------------------------- |
---|
66 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
67 | !! $Id: p4zprod.F90 3160 2011-11-20 14:27:18Z cetlod $ |
---|
68 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
69 | !!---------------------------------------------------------------------- |
---|
70 | CONTAINS |
---|
71 | |
---|
72 | SUBROUTINE p4z_prod( kt , knt ) |
---|
73 | !!--------------------------------------------------------------------- |
---|
74 | !! *** ROUTINE p4z_prod *** |
---|
75 | !! |
---|
76 | !! ** Purpose : Compute the phytoplankton production depending on |
---|
77 | !! light, temperature and nutrient availability |
---|
78 | !! |
---|
79 | !! ** Method : - ??? |
---|
80 | !!--------------------------------------------------------------------- |
---|
81 | ! |
---|
82 | INTEGER, INTENT(in) :: kt, knt |
---|
83 | ! |
---|
84 | INTEGER :: ji, jj, jk |
---|
85 | REAL(wp) :: zsilfac, znanotot, zdiattot, zconctemp, zconctemp2 |
---|
86 | REAL(wp) :: zratio, zmax, zsilim, ztn, zadap |
---|
87 | REAL(wp) :: zlim, zsilfac2, zsiborn, zprod, zproreg, zproreg2 |
---|
88 | REAL(wp) :: zmxltst, zmxlday, zmaxday |
---|
89 | REAL(wp) :: zpislopen , zpislope2n |
---|
90 | REAL(wp) :: zrum, zcodel, zargu, zval |
---|
91 | REAL(wp) :: zfact |
---|
92 | CHARACTER (len=25) :: charout |
---|
93 | REAL(wp), POINTER, DIMENSION(:,: ) :: zmixnano, zmixdiat, zstrn, zw2d |
---|
94 | REAL(wp), POINTER, DIMENSION(:,:,:) :: zpislopead, zpislopead2, zprdia, zprbio, zprdch, zprnch, zysopt, zw3d |
---|
95 | REAL(wp), POINTER, DIMENSION(:,:,:) :: zprorca, zprorcad, zprofed, zprofen, zprochln, zprochld, zpronew, zpronewd |
---|
96 | REAL(wp) :: zstep |
---|
97 | REAL(wp), POINTER, DIMENSION(:,:,:) :: zproco, zproisp |
---|
98 | !!--------------------------------------------------------------------- |
---|
99 | ! |
---|
100 | IF( nn_timing == 1 ) CALL timing_start('p4z_prod') |
---|
101 | ! |
---|
102 | ! Allocate temporary workspace |
---|
103 | CALL wrk_alloc( jpi, jpj, zmixnano, zmixdiat, zstrn ) |
---|
104 | CALL wrk_alloc( jpi, jpj, jpk, zpislopead, zpislopead2, zprdia, zprbio, zprdch, zprnch, zysopt ) |
---|
105 | CALL wrk_alloc( jpi, jpj, jpk, zprorca, zprorcad, zprofed, zprofen, zprochln, zprochld, zpronew, zpronewd ) |
---|
106 | ! |
---|
107 | zprorca (:,:,:) = 0._wp |
---|
108 | zprorcad(:,:,:) = 0._wp |
---|
109 | zprofed (:,:,:) = 0._wp |
---|
110 | zprofen (:,:,:) = 0._wp |
---|
111 | zprochln(:,:,:) = 0._wp |
---|
112 | zprochld(:,:,:) = 0._wp |
---|
113 | zpronew (:,:,:) = 0._wp |
---|
114 | zpronewd(:,:,:) = 0._wp |
---|
115 | zprdia (:,:,:) = 0._wp |
---|
116 | zprbio (:,:,:) = 0._wp |
---|
117 | zprdch (:,:,:) = 0._wp |
---|
118 | zprnch (:,:,:) = 0._wp |
---|
119 | zysopt (:,:,:) = 0._wp |
---|
120 | ! |
---|
121 | IF( lk_gas ) THEN |
---|
122 | CALL wrk_alloc( jpi, jpj, jpk, zproco, zproisp ) |
---|
123 | zproco (:,:,:) = 0._wp |
---|
124 | zproisp (:,:,:) = 0._wp |
---|
125 | ENDIF |
---|
126 | |
---|
127 | |
---|
128 | ! Computation of the optimal production |
---|
129 | prmax(:,:,:) = 0.6_wp * r1_rday * tgfunc(:,:,:) |
---|
130 | IF( lk_degrad ) prmax(:,:,:) = prmax(:,:,:) * facvol(:,:,:) |
---|
131 | |
---|
132 | ! compute the day length depending on latitude and the day |
---|
133 | zrum = REAL( nday_year - 80, wp ) / REAL( nyear_len(1), wp ) |
---|
134 | zcodel = ASIN( SIN( zrum * rpi * 2._wp ) * SIN( rad * 23.5_wp ) ) |
---|
135 | |
---|
136 | ! day length in hours |
---|
137 | zstrn(:,:) = 0. |
---|
138 | DO jj = 1, jpj |
---|
139 | DO ji = 1, jpi |
---|
140 | zargu = TAN( zcodel ) * TAN( gphit(ji,jj) * rad ) |
---|
141 | zargu = MAX( -1., MIN( 1., zargu ) ) |
---|
142 | zstrn(ji,jj) = MAX( 0.0, 24. - 2. * ACOS( zargu ) / rad / 15. ) |
---|
143 | END DO |
---|
144 | END DO |
---|
145 | |
---|
146 | ! Impact of the day duration on phytoplankton growth |
---|
147 | DO jk = 1, jpkm1 |
---|
148 | DO jj = 1 ,jpj |
---|
149 | DO ji = 1, jpi |
---|
150 | IF( etot_ndcy(ji,jj,jk) > 1.E-3 ) THEN |
---|
151 | zval = MAX( 1., zstrn(ji,jj) ) |
---|
152 | zval = 1.5 * zval / ( 12. + zval ) |
---|
153 | zprbio(ji,jj,jk) = prmax(ji,jj,jk) * zval |
---|
154 | zprdia(ji,jj,jk) = zprbio(ji,jj,jk) |
---|
155 | ENDIF |
---|
156 | END DO |
---|
157 | END DO |
---|
158 | END DO |
---|
159 | |
---|
160 | ! Maximum light intensity |
---|
161 | WHERE( zstrn(:,:) < 1.e0 ) zstrn(:,:) = 24. |
---|
162 | zstrn(:,:) = 24. / zstrn(:,:) |
---|
163 | |
---|
164 | IF( ln_newprod ) THEN |
---|
165 | !CDIR NOVERRCHK |
---|
166 | DO jk = 1, jpkm1 |
---|
167 | !CDIR NOVERRCHK |
---|
168 | DO jj = 1, jpj |
---|
169 | !CDIR NOVERRCHK |
---|
170 | DO ji = 1, jpi |
---|
171 | ! Computation of the P-I slope for nanos and diatoms |
---|
172 | IF( etot_ndcy(ji,jj,jk) > 1.E-3 ) THEN |
---|
173 | ztn = MAX( 0., tsn(ji,jj,jk,jp_tem) - 15. ) |
---|
174 | zadap = xadap * ztn / ( 2.+ ztn ) |
---|
175 | zconctemp = MAX( 0.e0 , trb(ji,jj,jk,jpdia) - xsizedia ) |
---|
176 | zconctemp2 = trb(ji,jj,jk,jpdia) - zconctemp |
---|
177 | znanotot = enano(ji,jj,jk) * zstrn(ji,jj) |
---|
178 | zdiattot = ediat(ji,jj,jk) * zstrn(ji,jj) |
---|
179 | ! |
---|
180 | zpislopead (ji,jj,jk) = pislope * ( 1.+ zadap * EXP( -znanotot ) ) & |
---|
181 | & * trb(ji,jj,jk,jpnch) /( trb(ji,jj,jk,jpphy) * 12. + rtrn) |
---|
182 | ! |
---|
183 | zpislopead2(ji,jj,jk) = (pislope * zconctemp2 + pislope2 * zconctemp) / ( trb(ji,jj,jk,jpdia) + rtrn ) & |
---|
184 | & * trb(ji,jj,jk,jpdch) /( trb(ji,jj,jk,jpdia) * 12. + rtrn) |
---|
185 | |
---|
186 | ! Computation of production function for Carbon |
---|
187 | ! --------------------------------------------- |
---|
188 | zpislopen = zpislopead (ji,jj,jk) / ( ( r1_rday + bresp * r1_rday ) * rday + rtrn) |
---|
189 | zpislope2n = zpislopead2(ji,jj,jk) / ( ( r1_rday + bresp * r1_rday ) * rday + rtrn) |
---|
190 | zprbio(ji,jj,jk) = zprbio(ji,jj,jk) * ( 1.- EXP( -zpislopen * znanotot ) ) |
---|
191 | zprdia(ji,jj,jk) = zprdia(ji,jj,jk) * ( 1.- EXP( -zpislope2n * zdiattot ) ) |
---|
192 | |
---|
193 | ! Computation of production function for Chlorophyll |
---|
194 | !-------------------------------------------------- |
---|
195 | zmaxday = 1._wp / ( prmax(ji,jj,jk) * rday + rtrn ) |
---|
196 | zprnch(ji,jj,jk) = prmax(ji,jj,jk) * ( 1.- EXP( -zpislopead (ji,jj,jk) * zmaxday * znanotot ) ) |
---|
197 | zprdch(ji,jj,jk) = prmax(ji,jj,jk) * ( 1.- EXP( -zpislopead2(ji,jj,jk) * zmaxday * zdiattot ) ) |
---|
198 | ENDIF |
---|
199 | END DO |
---|
200 | END DO |
---|
201 | END DO |
---|
202 | ELSE |
---|
203 | !CDIR NOVERRCHK |
---|
204 | DO jk = 1, jpkm1 |
---|
205 | !CDIR NOVERRCHK |
---|
206 | DO jj = 1, jpj |
---|
207 | !CDIR NOVERRCHK |
---|
208 | DO ji = 1, jpi |
---|
209 | |
---|
210 | ! Computation of the P-I slope for nanos and diatoms |
---|
211 | IF( etot_ndcy(ji,jj,jk) > 1.E-3 ) THEN |
---|
212 | ztn = MAX( 0., tsn(ji,jj,jk,jp_tem) - 15. ) |
---|
213 | zadap = ztn / ( 2.+ ztn ) |
---|
214 | zconctemp = MAX( 0.e0 , trb(ji,jj,jk,jpdia) - xsizedia ) |
---|
215 | zconctemp2 = trb(ji,jj,jk,jpdia) - zconctemp |
---|
216 | znanotot = enano(ji,jj,jk) * zstrn(ji,jj) |
---|
217 | zdiattot = ediat(ji,jj,jk) * zstrn(ji,jj) |
---|
218 | ! |
---|
219 | zpislopead (ji,jj,jk) = pislope * ( 1.+ zadap * EXP( -znanotot ) ) & |
---|
220 | & * trb(ji,jj,jk,jpnch) /( trb(ji,jj,jk,jpphy) * 12. + rtrn) |
---|
221 | zpislopead2(ji,jj,jk) = (pislope * zconctemp2 + pislope2 * zconctemp) / ( trb(ji,jj,jk,jpdia) + rtrn ) & |
---|
222 | & * trb(ji,jj,jk,jpdch) /( trb(ji,jj,jk,jpdia) * 12. + rtrn) |
---|
223 | |
---|
224 | ! Computation of production function for Carbon |
---|
225 | ! --------------------------------------------- |
---|
226 | zpislopen = zpislopead(ji,jj,jk) / ( prmax(ji,jj,jk) * rday * xlimphy(ji,jj,jk) + rtrn ) |
---|
227 | zpislope2n = zpislopead2(ji,jj,jk) / ( prmax(ji,jj,jk) * rday * xlimdia(ji,jj,jk) + rtrn ) |
---|
228 | zprbio(ji,jj,jk) = zprbio(ji,jj,jk) * ( 1.- EXP( -zpislopen * znanotot ) ) |
---|
229 | zprdia(ji,jj,jk) = zprdia(ji,jj,jk) * ( 1.- EXP( -zpislope2n * zdiattot ) ) |
---|
230 | |
---|
231 | ! Computation of production function for Chlorophyll |
---|
232 | !-------------------------------------------------- |
---|
233 | zprnch(ji,jj,jk) = prmax(ji,jj,jk) * ( 1.- EXP( -zpislopen * znanotot ) ) |
---|
234 | zprdch(ji,jj,jk) = prmax(ji,jj,jk) * ( 1.- EXP( -zpislope2n * zdiattot ) ) |
---|
235 | ENDIF |
---|
236 | END DO |
---|
237 | END DO |
---|
238 | END DO |
---|
239 | ENDIF |
---|
240 | |
---|
241 | ! Computation of a proxy of the N/C ratio |
---|
242 | ! --------------------------------------- |
---|
243 | !CDIR NOVERRCHK |
---|
244 | DO jk = 1, jpkm1 |
---|
245 | !CDIR NOVERRCHK |
---|
246 | DO jj = 1, jpj |
---|
247 | !CDIR NOVERRCHK |
---|
248 | DO ji = 1, jpi |
---|
249 | zval = MIN( xnanopo4(ji,jj,jk), ( xnanonh4(ji,jj,jk) + xnanono3(ji,jj,jk) ) ) & |
---|
250 | & * prmax(ji,jj,jk) / ( zprbio(ji,jj,jk) + rtrn ) |
---|
251 | quotan(ji,jj,jk) = MIN( 1., 0.2 + 0.8 * zval ) |
---|
252 | zval = MIN( xdiatpo4(ji,jj,jk), ( xdiatnh4(ji,jj,jk) + xdiatno3(ji,jj,jk) ) ) & |
---|
253 | & * prmax(ji,jj,jk) / ( zprdia(ji,jj,jk) + rtrn ) |
---|
254 | quotad(ji,jj,jk) = MIN( 1., 0.2 + 0.8 * zval ) |
---|
255 | END DO |
---|
256 | END DO |
---|
257 | END DO |
---|
258 | |
---|
259 | |
---|
260 | DO jk = 1, jpkm1 |
---|
261 | DO jj = 1, jpj |
---|
262 | DO ji = 1, jpi |
---|
263 | |
---|
264 | IF( etot_ndcy(ji,jj,jk) > 1.E-3 ) THEN |
---|
265 | ! Si/C of diatoms |
---|
266 | ! ------------------------ |
---|
267 | ! Si/C increases with iron stress and silicate availability |
---|
268 | ! Si/C is arbitrariliy increased for very high Si concentrations |
---|
269 | ! to mimic the very high ratios observed in the Southern Ocean (silpot2) |
---|
270 | zlim = trb(ji,jj,jk,jpsil) / ( trb(ji,jj,jk,jpsil) + xksi1 ) |
---|
271 | zsilim = MIN( zprdia(ji,jj,jk) / ( prmax(ji,jj,jk) + rtrn ), xlimsi(ji,jj,jk) ) |
---|
272 | zsilfac = 4.4 * EXP( -4.23 * zsilim ) * MAX( 0.e0, MIN( 1., 2.2 * ( zlim - 0.5 ) ) ) + 1.e0 |
---|
273 | zsiborn = trb(ji,jj,jk,jpsil) * trb(ji,jj,jk,jpsil) * trb(ji,jj,jk,jpsil) |
---|
274 | IF (gphit(ji,jj) < -30 ) THEN |
---|
275 | zsilfac2 = 1. + 2. * zsiborn / ( zsiborn + xksi2**3 ) |
---|
276 | ELSE |
---|
277 | zsilfac2 = 1. + zsiborn / ( zsiborn + xksi2**3 ) |
---|
278 | ENDIF |
---|
279 | zysopt(ji,jj,jk) = grosip * zlim * zsilfac * zsilfac2 |
---|
280 | ENDIF |
---|
281 | END DO |
---|
282 | END DO |
---|
283 | END DO |
---|
284 | |
---|
285 | ! Computation of the limitation term due to a mixed layer deeper than the euphotic depth |
---|
286 | DO jj = 1, jpj |
---|
287 | DO ji = 1, jpi |
---|
288 | zmxltst = MAX( 0.e0, hmld(ji,jj) - heup(ji,jj) ) |
---|
289 | zmxlday = zmxltst * zmxltst * r1_rday |
---|
290 | zmixnano(ji,jj) = 1. - zmxlday / ( 1. + zmxlday ) |
---|
291 | zmixdiat(ji,jj) = 1. - zmxlday / ( 2. + zmxlday ) |
---|
292 | END DO |
---|
293 | END DO |
---|
294 | |
---|
295 | ! Mixed-layer effect on production |
---|
296 | ! Sea-ice effect on production |
---|
297 | |
---|
298 | DO jk = 1, jpkm1 |
---|
299 | DO jj = 1, jpj |
---|
300 | DO ji = 1, jpi |
---|
301 | IF( fsdepw(ji,jj,jk+1) <= hmld(ji,jj) ) THEN |
---|
302 | zprbio(ji,jj,jk) = zprbio(ji,jj,jk) * zmixnano(ji,jj) |
---|
303 | zprdia(ji,jj,jk) = zprdia(ji,jj,jk) * zmixdiat(ji,jj) |
---|
304 | ENDIF |
---|
305 | zprbio(ji,jj,jk) = zprbio(ji,jj,jk) * ( 1. - fr_i(ji,jj) ) |
---|
306 | zprdia(ji,jj,jk) = zprdia(ji,jj,jk) * ( 1. - fr_i(ji,jj) ) |
---|
307 | END DO |
---|
308 | END DO |
---|
309 | END DO |
---|
310 | |
---|
311 | ! Computation of the various production terms |
---|
312 | !CDIR NOVERRCHK |
---|
313 | DO jk = 1, jpkm1 |
---|
314 | !CDIR NOVERRCHK |
---|
315 | DO jj = 1, jpj |
---|
316 | !CDIR NOVERRCHK |
---|
317 | DO ji = 1, jpi |
---|
318 | IF( etot_ndcy(ji,jj,jk) > 1.E-3 ) THEN |
---|
319 | ! production terms for nanophyto. |
---|
320 | zprorca(ji,jj,jk) = zprbio(ji,jj,jk) * xlimphy(ji,jj,jk) * trb(ji,jj,jk,jpphy) * rfact2 |
---|
321 | zpronew(ji,jj,jk) = zprorca(ji,jj,jk) * xnanono3(ji,jj,jk) / ( xnanono3(ji,jj,jk) + xnanonh4(ji,jj,jk) + rtrn ) |
---|
322 | ! |
---|
323 | zratio = trb(ji,jj,jk,jpnfe) / ( trb(ji,jj,jk,jpphy) + rtrn ) |
---|
324 | zratio = zratio / fecnm |
---|
325 | zmax = MAX( 0., ( 1. - zratio ) / ABS( 1.05 - zratio ) ) |
---|
326 | zprofen(ji,jj,jk) = fecnm * prmax(ji,jj,jk) & |
---|
327 | & * ( 4. - 4.5 * xlimnfe(ji,jj,jk) / ( xlimnfe(ji,jj,jk) + 0.5 ) ) & |
---|
328 | & * biron(ji,jj,jk) / ( biron(ji,jj,jk) + concnfe(ji,jj,jk) ) & |
---|
329 | & * zmax * trb(ji,jj,jk,jpphy) * rfact2 |
---|
330 | ! production terms for diatomees |
---|
331 | zprorcad(ji,jj,jk) = zprdia(ji,jj,jk) * xlimdia(ji,jj,jk) * trb(ji,jj,jk,jpdia) * rfact2 |
---|
332 | zpronewd(ji,jj,jk) = zprorcad(ji,jj,jk) * xdiatno3(ji,jj,jk) / ( xdiatno3(ji,jj,jk) + xdiatnh4(ji,jj,jk) + rtrn ) |
---|
333 | ! |
---|
334 | zratio = trb(ji,jj,jk,jpdfe) / ( trb(ji,jj,jk,jpdia) + rtrn ) |
---|
335 | zratio = zratio / fecdm |
---|
336 | zmax = MAX( 0., ( 1. - zratio ) / ABS( 1.05 - zratio ) ) |
---|
337 | zprofed(ji,jj,jk) = fecdm * prmax(ji,jj,jk) & |
---|
338 | & * ( 4. - 4.5 * xlimdfe(ji,jj,jk) / ( xlimdfe(ji,jj,jk) + 0.5 ) ) & |
---|
339 | & * biron(ji,jj,jk) / ( biron(ji,jj,jk) + concdfe(ji,jj,jk) ) & |
---|
340 | & * zmax * trb(ji,jj,jk,jpdia) * rfact2 |
---|
341 | ENDIF |
---|
342 | END DO |
---|
343 | END DO |
---|
344 | END DO |
---|
345 | |
---|
346 | !CDIR NOVERRCHK |
---|
347 | DO jk = 1, jpkm1 |
---|
348 | !CDIR NOVERRCHK |
---|
349 | DO jj = 1, jpj |
---|
350 | !CDIR NOVERRCHK |
---|
351 | DO ji = 1, jpi |
---|
352 | IF( fsdepw(ji,jj,jk+1) <= hmld(ji,jj) ) THEN |
---|
353 | zprnch(ji,jj,jk) = zprnch(ji,jj,jk) * zmixnano(ji,jj) |
---|
354 | zprdch(ji,jj,jk) = zprdch(ji,jj,jk) * zmixdiat(ji,jj) |
---|
355 | ENDIF |
---|
356 | IF( etot_ndcy(ji,jj,jk) > 1.E-3 ) THEN |
---|
357 | ! production terms for nanophyto. ( chlorophyll ) |
---|
358 | znanotot = enano(ji,jj,jk) * zstrn(ji,jj) |
---|
359 | zprod = rday * zprorca(ji,jj,jk) * zprnch(ji,jj,jk) * xlimphy(ji,jj,jk) |
---|
360 | zprochln(ji,jj,jk) = chlcmin * 12. * zprorca (ji,jj,jk) |
---|
361 | zprochln(ji,jj,jk) = zprochln(ji,jj,jk) + (chlcnm-chlcmin) * 12. * zprod / & |
---|
362 | & ( zpislopead(ji,jj,jk) * znanotot +rtrn) |
---|
363 | ! production terms for diatomees ( chlorophyll ) |
---|
364 | zdiattot = ediat(ji,jj,jk) * zstrn(ji,jj) |
---|
365 | zprod = rday * zprorcad(ji,jj,jk) * zprdch(ji,jj,jk) * xlimdia(ji,jj,jk) |
---|
366 | zprochld(ji,jj,jk) = chlcmin * 12. * zprorcad(ji,jj,jk) |
---|
367 | zprochld(ji,jj,jk) = zprochld(ji,jj,jk) + (chlcdm-chlcmin) * 12. * zprod / & |
---|
368 | & ( zpislopead2(ji,jj,jk) * zdiattot +rtrn ) |
---|
369 | ENDIF |
---|
370 | END DO |
---|
371 | END DO |
---|
372 | END DO |
---|
373 | |
---|
374 | ! Update the arrays TRA which contain the biological sources and sinks |
---|
375 | DO jk = 1, jpkm1 |
---|
376 | DO jj = 1, jpj |
---|
377 | DO ji =1 ,jpi |
---|
378 | zproreg = zprorca(ji,jj,jk) - zpronew(ji,jj,jk) |
---|
379 | zproreg2 = zprorcad(ji,jj,jk) - zpronewd(ji,jj,jk) |
---|
380 | tra(ji,jj,jk,jppo4) = tra(ji,jj,jk,jppo4) - zprorca(ji,jj,jk) - zprorcad(ji,jj,jk) |
---|
381 | tra(ji,jj,jk,jpno3) = tra(ji,jj,jk,jpno3) - zpronew(ji,jj,jk) - zpronewd(ji,jj,jk) |
---|
382 | tra(ji,jj,jk,jpnh4) = tra(ji,jj,jk,jpnh4) - zproreg - zproreg2 |
---|
383 | tra(ji,jj,jk,jpphy) = tra(ji,jj,jk,jpphy) + zprorca(ji,jj,jk) * texcret |
---|
384 | tra(ji,jj,jk,jpnch) = tra(ji,jj,jk,jpnch) + zprochln(ji,jj,jk) * texcret |
---|
385 | tra(ji,jj,jk,jpnfe) = tra(ji,jj,jk,jpnfe) + zprofen(ji,jj,jk) * texcret |
---|
386 | tra(ji,jj,jk,jpdia) = tra(ji,jj,jk,jpdia) + zprorcad(ji,jj,jk) * texcret2 |
---|
387 | tra(ji,jj,jk,jpdch) = tra(ji,jj,jk,jpdch) + zprochld(ji,jj,jk) * texcret2 |
---|
388 | tra(ji,jj,jk,jpdfe) = tra(ji,jj,jk,jpdfe) + zprofed(ji,jj,jk) * texcret2 |
---|
389 | tra(ji,jj,jk,jpdsi) = tra(ji,jj,jk,jpdsi) + zprorcad(ji,jj,jk) * zysopt(ji,jj,jk) * texcret2 |
---|
390 | tra(ji,jj,jk,jpdoc) = tra(ji,jj,jk,jpdoc) + excret2 * zprorcad(ji,jj,jk) + excret * zprorca(ji,jj,jk) |
---|
391 | tra(ji,jj,jk,jpoxy) = tra(ji,jj,jk,jpoxy) + o2ut * ( zproreg + zproreg2) & |
---|
392 | & + ( o2ut + o2nit ) * ( zpronew(ji,jj,jk) + zpronewd(ji,jj,jk) ) |
---|
393 | tra(ji,jj,jk,jpfer) = tra(ji,jj,jk,jpfer) - texcret * zprofen(ji,jj,jk) - texcret2 * zprofed(ji,jj,jk) |
---|
394 | tra(ji,jj,jk,jpsil) = tra(ji,jj,jk,jpsil) - texcret2 * zprorcad(ji,jj,jk) * zysopt(ji,jj,jk) |
---|
395 | tra(ji,jj,jk,jpdic) = tra(ji,jj,jk,jpdic) - zprorca(ji,jj,jk) - zprorcad(ji,jj,jk) |
---|
396 | tra(ji,jj,jk,jptal) = tra(ji,jj,jk,jptal) + rno3 * ( zpronew(ji,jj,jk) + zpronewd(ji,jj,jk) ) & |
---|
397 | & - rno3 * ( zproreg + zproreg2 ) |
---|
398 | END DO |
---|
399 | END DO |
---|
400 | END DO |
---|
401 | ! |
---|
402 | IF( lk_gas ) THEN |
---|
403 | zstep = xstep * 1.e-6 |
---|
404 | DO jk = 1, jpkm1 |
---|
405 | DO jj = 1, jpj |
---|
406 | DO ji =1 ,jpi |
---|
407 | ! update the dms with sources & sinks |
---|
408 | tra(ji,jj,jk,jpdms) = tra(ji,jj,jk,jpdms) & |
---|
409 | & + xeffic(ji,jj,jk) * ( xcelld(ji,jj,jk) * zprorcad(ji,jj,jk ) * excret2 & |
---|
410 | & + xcelln(ji,jj,jk) * zprorca(ji,jj,jk) * excret ) |
---|
411 | ! production rate of CO & Isoprene : function of phytoplancton |
---|
412 | ! growth |
---|
413 | zproco(ji,jj,jk) = zstep * ( xnanoco * trb(ji,jj,jk,jpnch) + xdiaco * trb(ji,jj,jk,jpdch) ) |
---|
414 | zproisp(ji,jj,jk) = zstep * ( xnanoIsp * trb(ji,jj,jk,jpnch) + xdiaIsp * trb(ji,jj,jk,jpdch) ) |
---|
415 | ! Add the trends |
---|
416 | tra(ji,jj,jk,jpco) = tra(ji,jj,jk,jpco) + zproco(ji,jj,jk) |
---|
417 | tra(ji,jj,jk,jpisp) = tra(ji,jj,jk,jpisp) + zproisp(ji,jj,jk) |
---|
418 | END DO |
---|
419 | END DO |
---|
420 | END DO |
---|
421 | ENDIF |
---|
422 | |
---|
423 | |
---|
424 | ! Total primary production per year |
---|
425 | IF( iom_use( "tintpp" ) .OR. ( ln_check_mass .AND. kt == nitend .AND. knt == nrdttrc ) ) & |
---|
426 | & tpp = glob_sum( ( zprorca(:,:,:) + zprorcad(:,:,:) ) * cvol(:,:,:) ) |
---|
427 | |
---|
428 | IF( lk_iomput ) THEN |
---|
429 | IF( knt == nrdttrc ) THEN |
---|
430 | CALL wrk_alloc( jpi, jpj, zw2d ) |
---|
431 | CALL wrk_alloc( jpi, jpj, jpk, zw3d ) |
---|
432 | zfact = 1.e+3 * rfact2r ! conversion from mol/l/kt to mol/m3/s |
---|
433 | ! |
---|
434 | IF( iom_use( "PPPHY" ) .OR. iom_use( "PPPHY2" ) ) THEN |
---|
435 | zw3d(:,:,:) = zprorca (:,:,:) * zfact * tmask(:,:,:) ! primary production by nanophyto |
---|
436 | CALL iom_put( "PPPHY" , zw3d ) |
---|
437 | ! |
---|
438 | zw3d(:,:,:) = zprorcad(:,:,:) * zfact * tmask(:,:,:) ! primary production by diatomes |
---|
439 | CALL iom_put( "PPPHY2" , zw3d ) |
---|
440 | ENDIF |
---|
441 | IF( iom_use( "PPNEWN" ) .OR. iom_use( "PPNEWD" ) ) THEN |
---|
442 | zw3d(:,:,:) = zpronew (:,:,:) * zfact * tmask(:,:,:) ! new primary production by nanophyto |
---|
443 | CALL iom_put( "PPNEWN" , zw3d ) |
---|
444 | ! |
---|
445 | zw3d(:,:,:) = zpronewd(:,:,:) * zfact * tmask(:,:,:) ! new primary production by diatomes |
---|
446 | CALL iom_put( "PPNEWD" , zw3d ) |
---|
447 | ENDIF |
---|
448 | IF( iom_use( "PBSi" ) ) THEN |
---|
449 | zw3d(:,:,:) = zprorcad(:,:,:) * zfact * tmask(:,:,:) * zysopt(:,:,:) ! biogenic silica production |
---|
450 | CALL iom_put( "PBSi" , zw3d ) |
---|
451 | ENDIF |
---|
452 | IF( iom_use( "PFeN" ) .OR. iom_use( "PFeD" ) ) THEN |
---|
453 | zw3d(:,:,:) = zprofen(:,:,:) * zfact * tmask(:,:,:) ! biogenic iron production by nanophyto |
---|
454 | CALL iom_put( "PFeN" , zw3d ) |
---|
455 | ! |
---|
456 | zw3d(:,:,:) = zprofed(:,:,:) * zfact * tmask(:,:,:) ! biogenic iron production by diatomes |
---|
457 | CALL iom_put( "PFeD" , zw3d ) |
---|
458 | ENDIF |
---|
459 | IF( iom_use( "Mumax" ) ) THEN |
---|
460 | zw3d(:,:,:) = prmax(:,:,:) * tmask(:,:,:) ! Maximum growth rate |
---|
461 | CALL iom_put( "Mumax" , zw3d ) |
---|
462 | ENDIF |
---|
463 | IF( iom_use( "MuN" ) .OR. iom_use( "MuD" ) ) THEN |
---|
464 | zw3d(:,:,:) = zprbio(:,:,:) * xlimphy(:,:,:) * tmask(:,:,:) ! Realized growth rate for nanophyto |
---|
465 | CALL iom_put( "MuN" , zw3d ) |
---|
466 | ! |
---|
467 | zw3d(:,:,:) = zprdia(:,:,:) * xlimdia(:,:,:) * tmask(:,:,:) ! Realized growth rate for diatoms |
---|
468 | CALL iom_put( "MuD" , zw3d ) |
---|
469 | ENDIF |
---|
470 | IF( iom_use( "LNlight" ) .OR. iom_use( "LDlight" ) ) THEN |
---|
471 | zw3d(:,:,:) = zprbio (:,:,:) / (prmax(:,:,:) + rtrn) * tmask(:,:,:) ! light limitation term |
---|
472 | CALL iom_put( "LNlight" , zw3d ) |
---|
473 | ! |
---|
474 | zw3d(:,:,:) = zprdia (:,:,:) / (prmax(:,:,:) + rtrn) * tmask(:,:,:) ! light limitation term |
---|
475 | CALL iom_put( "LDlight" , zw3d ) |
---|
476 | ENDIF |
---|
477 | IF( iom_use( "TPP" ) ) THEN |
---|
478 | zw3d(:,:,:) = ( zprorca(:,:,:) + zprorcad(:,:,:) ) * zfact * tmask(:,:,:) ! total primary production |
---|
479 | CALL iom_put( "TPP" , zw3d ) |
---|
480 | ENDIF |
---|
481 | IF( iom_use( "TPNEW" ) ) THEN |
---|
482 | zw3d(:,:,:) = ( zpronew(:,:,:) + zpronewd(:,:,:) ) * zfact * tmask(:,:,:) ! total new production |
---|
483 | CALL iom_put( "TPNEW" , zw3d ) |
---|
484 | ENDIF |
---|
485 | IF( iom_use( "TPBFE" ) ) THEN |
---|
486 | zw3d(:,:,:) = ( zprofen(:,:,:) + zprofed(:,:,:) ) * zfact * tmask(:,:,:) ! total biogenic iron production |
---|
487 | CALL iom_put( "TPBFE" , zw3d ) |
---|
488 | ENDIF |
---|
489 | IF( iom_use( "INTPPPHY" ) .OR. iom_use( "INTPPPHY2" ) ) THEN |
---|
490 | zw2d(:,:) = 0. |
---|
491 | DO jk = 1, jpkm1 |
---|
492 | zw2d(:,:) = zw2d(:,:) + zprorca (:,:,jk) * fse3t(:,:,jk) * zfact * tmask(:,:,jk) ! vert. integrated primary produc. by nano |
---|
493 | ENDDO |
---|
494 | CALL iom_put( "INTPPPHY" , zw2d ) |
---|
495 | ! |
---|
496 | zw2d(:,:) = 0. |
---|
497 | DO jk = 1, jpkm1 |
---|
498 | zw2d(:,:) = zw2d(:,:) + zprorcad(:,:,jk) * fse3t(:,:,jk) * zfact * tmask(:,:,jk) ! vert. integrated primary produc. by diatom |
---|
499 | ENDDO |
---|
500 | CALL iom_put( "INTPPPHY2" , zw2d ) |
---|
501 | ENDIF |
---|
502 | IF( iom_use( "INTPP" ) ) THEN |
---|
503 | zw2d(:,:) = 0. |
---|
504 | DO jk = 1, jpkm1 |
---|
505 | zw2d(:,:) = zw2d(:,:) + ( zprorca(:,:,jk) + zprorcad(:,:,jk) ) * fse3t(:,:,jk) * zfact * tmask(:,:,jk) ! vert. integrated pp |
---|
506 | ENDDO |
---|
507 | CALL iom_put( "INTPP" , zw2d ) |
---|
508 | ENDIF |
---|
509 | IF( iom_use( "INTPNEW" ) ) THEN |
---|
510 | zw2d(:,:) = 0. |
---|
511 | DO jk = 1, jpkm1 |
---|
512 | zw2d(:,:) = zw2d(:,:) + ( zpronew(:,:,jk) + zpronewd(:,:,jk) ) * fse3t(:,:,jk) * zfact * tmask(:,:,jk) ! vert. integrated new prod |
---|
513 | ENDDO |
---|
514 | CALL iom_put( "INTPNEW" , zw2d ) |
---|
515 | ENDIF |
---|
516 | IF( iom_use( "INTPBFE" ) ) THEN ! total biogenic iron production ( vertically integrated ) |
---|
517 | zw2d(:,:) = 0. |
---|
518 | DO jk = 1, jpkm1 |
---|
519 | zw2d(:,:) = zw2d(:,:) + ( zprofen(:,:,jk) + zprofed(:,:,jk) ) * fse3t(:,:,jk) * zfact * tmask(:,:,jk) ! vert integr. bfe prod |
---|
520 | ENDDO |
---|
521 | CALL iom_put( "INTPBFE" , zw2d ) |
---|
522 | ENDIF |
---|
523 | IF( iom_use( "INTPBSI" ) ) THEN ! total biogenic silica production ( vertically integrated ) |
---|
524 | zw2d(:,:) = 0. |
---|
525 | DO jk = 1, jpkm1 |
---|
526 | zw2d(:,:) = zw2d(:,:) + zprorcad(:,:,jk) * zysopt(:,:,jk) * fse3t(:,:,jk) * zfact * tmask(:,:,jk) ! vert integr. bsi prod |
---|
527 | ENDDO |
---|
528 | CALL iom_put( "INTPBSI" , zw2d ) |
---|
529 | ENDIF |
---|
530 | IF( iom_use( "tintpp" ) ) CALL iom_put( "tintpp" , tpp * zfact ) ! global total integrated primary production molC/s |
---|
531 | ! |
---|
532 | IF( lk_gas ) THEN |
---|
533 | IF( iom_use( "SCquotan" ) ) THEN |
---|
534 | zw3d(:,:,:) = xcelln(:,:,:) * tmask(:,:,:) ! Quota S/C for Nanos |
---|
535 | CALL iom_put( "SCquotan" , zw3d ) |
---|
536 | ENDIF |
---|
537 | IF( iom_use( "SCquotad" ) ) THEN |
---|
538 | zw3d(:,:,:) = xcelld(:,:,:) * tmask(:,:,:) ! Quota S/C for Diatoms |
---|
539 | CALL iom_put( "SCquotad" , zw3d ) |
---|
540 | ENDIF |
---|
541 | IF( iom_use( "Yield" ) ) THEN |
---|
542 | zw3d(:,:,:) = xeffic(:,:,:) * tmask(:,:,:) ! DMSP to DMS Yield |
---|
543 | CALL iom_put( "Yield" , zw3d ) |
---|
544 | ENDIF |
---|
545 | IF( iom_use( "BioprodCO" ) ) THEN |
---|
546 | zw3d(:,:,:) = zproco(:,:,:) * zfact * tmask(:,:,:) ! Biological Production of CO |
---|
547 | CALL iom_put( "BioprodCO" , zw3d ) |
---|
548 | ENDIF |
---|
549 | IF( iom_use( "BioprodISP" ) ) THEN |
---|
550 | zw3d(:,:,:) = zproisp(:,:,:) * zfact * tmask(:,:,:) ! Biological Production of ISP |
---|
551 | CALL iom_put( "BioprodISP" , zw3d ) |
---|
552 | ENDIF |
---|
553 | ENDIF |
---|
554 | ! |
---|
555 | CALL wrk_dealloc( jpi, jpj, zw2d ) |
---|
556 | CALL wrk_dealloc( jpi, jpj, jpk, zw3d ) |
---|
557 | ENDIF |
---|
558 | ELSE |
---|
559 | IF( ln_diatrc ) THEN |
---|
560 | zfact = 1.e+3 * rfact2r |
---|
561 | trc3d(:,:,:,jp_pcs0_3d + 4) = zprorca (:,:,:) * zfact * tmask(:,:,:) |
---|
562 | trc3d(:,:,:,jp_pcs0_3d + 5) = zprorcad(:,:,:) * zfact * tmask(:,:,:) |
---|
563 | trc3d(:,:,:,jp_pcs0_3d + 6) = zpronew (:,:,:) * zfact * tmask(:,:,:) |
---|
564 | trc3d(:,:,:,jp_pcs0_3d + 7) = zpronewd(:,:,:) * zfact * tmask(:,:,:) |
---|
565 | trc3d(:,:,:,jp_pcs0_3d + 8) = zprorcad(:,:,:) * zfact * tmask(:,:,:) * zysopt(:,:,:) |
---|
566 | trc3d(:,:,:,jp_pcs0_3d + 9) = zprofed (:,:,:) * zfact * tmask(:,:,:) |
---|
567 | # if ! defined key_kriest |
---|
568 | trc3d(:,:,:,jp_pcs0_3d + 10) = zprofen (:,:,:) * zfact * tmask(:,:,:) |
---|
569 | # endif |
---|
570 | ENDIF |
---|
571 | ENDIF |
---|
572 | |
---|
573 | IF(ln_ctl) THEN ! print mean trends (used for debugging) |
---|
574 | WRITE(charout, FMT="('prod')") |
---|
575 | CALL prt_ctl_trc_info(charout) |
---|
576 | CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm) |
---|
577 | ENDIF |
---|
578 | ! |
---|
579 | CALL wrk_dealloc( jpi, jpj, zmixnano, zmixdiat, zstrn ) |
---|
580 | CALL wrk_dealloc( jpi, jpj, jpk, zpislopead, zpislopead2, zprdia, zprbio, zprdch, zprnch, zysopt ) |
---|
581 | CALL wrk_dealloc( jpi, jpj, jpk, zprorca, zprorcad, zprofed, zprofen, zprochln, zprochld, zpronew, zpronewd ) |
---|
582 | IF( lk_gas ) CALL wrk_dealloc( jpi, jpj, jpk, zproco, zproisp ) |
---|
583 | ! |
---|
584 | IF( nn_timing == 1 ) CALL timing_stop('p4z_prod') |
---|
585 | ! |
---|
586 | END SUBROUTINE p4z_prod |
---|
587 | |
---|
588 | |
---|
589 | SUBROUTINE p4z_prod_init |
---|
590 | !!---------------------------------------------------------------------- |
---|
591 | !! *** ROUTINE p4z_prod_init *** |
---|
592 | !! |
---|
593 | !! ** Purpose : Initialization of phytoplankton production parameters |
---|
594 | !! |
---|
595 | !! ** Method : Read the nampisprod namelist and check the parameters |
---|
596 | !! called at the first timestep (nittrc000) |
---|
597 | !! |
---|
598 | !! ** input : Namelist nampisprod |
---|
599 | !!---------------------------------------------------------------------- |
---|
600 | ! |
---|
601 | NAMELIST/nampisprod/ pislope, pislope2, xadap, ln_newprod, bresp, excret, excret2, & |
---|
602 | #if defined key_gas |
---|
603 | & xnanoco, xdiaco, xnanoIsp, xdiaIsp, & |
---|
604 | #endif |
---|
605 | & chlcnm, chlcdm, chlcmin, fecnm, fecdm, grosip |
---|
606 | INTEGER :: ios ! Local integer output status for namelist read |
---|
607 | !!---------------------------------------------------------------------- |
---|
608 | |
---|
609 | REWIND( numnatp_ref ) ! Namelist nampisprod in reference namelist : Pisces phytoplankton production |
---|
610 | READ ( numnatp_ref, nampisprod, IOSTAT = ios, ERR = 901) |
---|
611 | 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisprod in reference namelist', lwp ) |
---|
612 | |
---|
613 | REWIND( numnatp_cfg ) ! Namelist nampisprod in configuration namelist : Pisces phytoplankton production |
---|
614 | READ ( numnatp_cfg, nampisprod, IOSTAT = ios, ERR = 902 ) |
---|
615 | 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisprod in configuration namelist', lwp ) |
---|
616 | IF(lwm) WRITE ( numonp, nampisprod ) |
---|
617 | |
---|
618 | IF(lwp) THEN ! control print |
---|
619 | WRITE(numout,*) ' ' |
---|
620 | WRITE(numout,*) ' Namelist parameters for phytoplankton growth, nampisprod' |
---|
621 | WRITE(numout,*) ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' |
---|
622 | WRITE(numout,*) ' Enable new parame. of production (T/F) ln_newprod =', ln_newprod |
---|
623 | WRITE(numout,*) ' mean Si/C ratio grosip =', grosip |
---|
624 | WRITE(numout,*) ' P-I slope pislope =', pislope |
---|
625 | WRITE(numout,*) ' Acclimation factor to low light xadap =', xadap |
---|
626 | WRITE(numout,*) ' excretion ratio of nanophytoplankton excret =', excret |
---|
627 | WRITE(numout,*) ' excretion ratio of diatoms excret2 =', excret2 |
---|
628 | IF( ln_newprod ) THEN |
---|
629 | WRITE(numout,*) ' basal respiration in phytoplankton bresp =', bresp |
---|
630 | WRITE(numout,*) ' Maximum Chl/C in phytoplankton chlcmin =', chlcmin |
---|
631 | ENDIF |
---|
632 | WRITE(numout,*) ' P-I slope for diatoms pislope2 =', pislope2 |
---|
633 | WRITE(numout,*) ' Minimum Chl/C in nanophytoplankton chlcnm =', chlcnm |
---|
634 | WRITE(numout,*) ' Minimum Chl/C in diatoms chlcdm =', chlcdm |
---|
635 | WRITE(numout,*) ' Maximum Fe/C in nanophytoplankton fecnm =', fecnm |
---|
636 | WRITE(numout,*) ' Minimum Fe/C in diatoms fecdm =', fecdm |
---|
637 | #if defined key_gas |
---|
638 | WRITE(numout,*) ' Production of CO via nanophyto (µmol.gChla-1.d-1) xnanoco =', xnanoco |
---|
639 | WRITE(numout,*) ' Production of CO via diatome (µmol.gChla-1.d-1) xdiaco =', xdiaco |
---|
640 | WRITE(numout,*) ' Production of isoprene via nanophyto (µmol.gChla-1.d-1) xnanoIsp =', xnanoIsp |
---|
641 | WRITE(numout,*) ' Production of isoprene via diatome (µmol.gChla-1.d-1) xdiaIsp =', xdiaIsp |
---|
642 | #endif |
---|
643 | ENDIF |
---|
644 | ! |
---|
645 | r1_rday = 1._wp / rday |
---|
646 | texcret = 1._wp - excret |
---|
647 | texcret2 = 1._wp - excret2 |
---|
648 | tpp = 0._wp |
---|
649 | ! |
---|
650 | END SUBROUTINE p4z_prod_init |
---|
651 | |
---|
652 | |
---|
653 | INTEGER FUNCTION p4z_prod_alloc() |
---|
654 | !!---------------------------------------------------------------------- |
---|
655 | !! *** ROUTINE p4z_prod_alloc *** |
---|
656 | !!---------------------------------------------------------------------- |
---|
657 | ALLOCATE( prmax(jpi,jpj,jpk), quotan(jpi,jpj,jpk), quotad(jpi,jpj,jpk), STAT = p4z_prod_alloc ) |
---|
658 | ! |
---|
659 | IF( p4z_prod_alloc /= 0 ) CALL ctl_warn('p4z_prod_alloc : failed to allocate arrays.') |
---|
660 | ! |
---|
661 | END FUNCTION p4z_prod_alloc |
---|
662 | |
---|
663 | #else |
---|
664 | !!====================================================================== |
---|
665 | !! Dummy module : No PISCES bio-model |
---|
666 | !!====================================================================== |
---|
667 | CONTAINS |
---|
668 | SUBROUTINE p4z_prod ! Empty routine |
---|
669 | END SUBROUTINE p4z_prod |
---|
670 | #endif |
---|
671 | |
---|
672 | !!====================================================================== |
---|
673 | END MODULE p4zprod |
---|