/[MITgcm]/MITgcm_contrib/darwin2/pkg/monod/monod_init_vari.F
ViewVC logotype

Contents of /MITgcm_contrib/darwin2/pkg/monod/monod_init_vari.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.15 - (show annotations) (download)
Thu May 1 16:19:32 2014 UTC (11 years, 2 months ago) by jahn
Branch: MAIN
CVS Tags: ctrb_darwin2_ckpt65w_20160512, ctrb_darwin2_ckpt65j_20150225, ctrb_darwin2_ckpt66g_20170424, ctrb_darwin2_ckpt66k_20171025, ctrb_darwin2_ckpt66n_20180118, ctrb_darwin2_ckpt65v_20160409, ctrb_darwin2_ckpt65s_20160114, ctrb_darwin2_ckpt65_20140718, ctrb_darwin2_ckpt66d_20170214, ctrb_darwin2_ckpt65m_20150615, ctrb_darwin2_ckpt65q_20151118, ctrb_darwin2_ckpt65o_20150914, ctrb_darwin2_ckpt65p_20151023, ctrb_darwin2_ckpt65e_20140929, ctrb_darwin2_ckpt64z_20140711, ctrb_darwin2_ckpt65l_20150504, ctrb_darwin2_ckpt65z_20160929, ctrb_darwin2_ckpt65n_20150729, ctrb_darwin2_ckpt64y_20140622, ctrb_darwin2_ckpt65d_20140915, ctrb_darwin2_ckpt66h_20170602, ctrb_darwin2_ckpt64x_20140524, ctrb_darwin2_ckpt65x_20160612, ctrb_darwin2_ckpt66f_20170407, ctrb_darwin2_ckpt65g_20141120, ctrb_darwin2_ckpt65k_20150402, ctrb_darwin2_ckpt64w_20140502, ctrb_darwin2_ckpt66a_20161020, ctrb_darwin2_ckpt65f_20141014, ctrb_darwin2_ckpt66b_20161219, ctrb_darwin2_ckpt65i_20150123, ctrb_darwin2_ckpt66j_20170815, ctrb_darwin2_ckpt65y_20160801, ctrb_darwin2_ckpt66c_20170121, ctrb_darwin2_ckpt65a_20140728, ctrb_darwin2_ckpt65b_20140812, ctrb_darwin2_ckpt65t_20160221, ctrb_darwin2_ckpt66o_20180209, ctrb_darwin2_ckpt66e_20170314, ctrb_darwin2_ckpt65u_20160315, ctrb_darwin2_ckpt65r_20151221, ctrb_darwin2_ckpt66i_20170718, ctrb_darwin2_ckpt65c_20140830, ctrb_darwin2_ckpt66l_20171025, ctrb_darwin2_ckpt65h_20141217, ctrb_darwin2_ckpt66m_20171213, HEAD
Changes since 1.14: +24 -1 lines
add option FIX_ZOO_QUOTAS

1 C $Header: /u/gcmpack/MITgcm_contrib/darwin2/pkg/monod/monod_init_vari.F,v 1.14 2013/12/27 17:29:00 jahn Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5 #include "DARWIN_OPTIONS.h"
6
7 #ifdef ALLOW_PTRACERS
8 #ifdef ALLOW_MONOD
9
10 c ==========================================================
11 c SUBROUTINE MONOD_INIT_VARI()
12 c initialize stuff for generalized plankton model
13 c adapted from NPZD2Fe - Mick Follows, Fall 2005
14 c modified - Stephanie Dutkiewicz, Spring 2006
15 c ==========================================================
16 c
17 SUBROUTINE MONOD_INIT_VARI(myThid)
18
19 IMPLICIT NONE
20
21 #include "SIZE.h"
22 #include "GRID.h"
23 #include "DYNVARS.h"
24 #include "EEPARAMS.h"
25 #include "PARAMS.h"
26 #include "MONOD_SIZE.h"
27 #include "MONOD.h"
28 #include "DARWIN_IO.h"
29
30 c ANNA define params for WAVEBANDS
31 #ifdef WAVEBANDS
32 #include "SPECTRAL_SIZE.h"
33 #include "SPECTRAL.h"
34 #include "WAVEBANDS_PARAMS.h"
35 #endif
36
37 #ifdef ALLOW_DIAZ
38 #include "PTRACERS_SIZE.h"
39 #include "PTRACERS_PARAMS.h"
40 #include "PTRACERS_FIELDS.h"
41 #endif
42
43
44 C !INPUT PARAMETERS: ===================================================
45 C myThid :: thread number
46 INTEGER myThid
47 CEOP
48
49 C !FUNCTIONS:
50 _RL DARWIN_RANDOM
51 EXTERNAL DARWIN_RANDOM
52
53 C !LOCAL VARIABLES:
54 C msgBuf - Informational/error meesage buffer
55 CHARACTER*(MAX_LEN_MBUF) msgBuf
56 INTEGER IniUnit1, IniUnit2
57
58 INTEGER bi, bj, k, i, j, iPAR
59
60 INTEGER np
61 INTEGER nz
62 c ANNA need nl for wavebands
63 #ifdef WAVEBANDS
64 INTEGER ilam
65 INTEGER nl
66 _RL cu_area
67 #endif
68
69 C ----------------------------------------------------------------------
70 C Scalar bits first
71 _BEGIN_MASTER( myThid )
72
73 WRITE(msgBuf,'(A)')
74 & '// ======================================================='
75 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
76 & SQUEEZE_RIGHT, myThid )
77 WRITE(msgBuf,'(A)') '// Darwin init variables >>> START <<<'
78 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
79 & SQUEEZE_RIGHT, myThid )
80 WRITE(msgBuf,'(A)')
81 & '// ======================================================='
82 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
83 & SQUEEZE_RIGHT, myThid )
84
85 c set up ecosystem coefficients
86 c
87 c seed randomization
88
89 CALL DARWIN_RANDOM_INIT(darwin_seed, myThid)
90
91 c initialize total number of functional groups tried
92 ngroups = 0
93 do np = 1, npmax
94 #ifdef ALLOW_MUTANTS
95 call MONOD_GENERATE_MUTANTS(MyThid, np)
96 #else
97 call MONOD_GENERATE_PHYTO(MyThid, np)
98 #endif
99 end do
100
101 c initialize zooplankton
102 call MONOD_GENERATE_ZOO(MyThid)
103
104 c %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
105
106 c ANNA call WAVEBANDS_INIT_VARI to assign variable parameters
107 #ifdef WAVEBANDS
108 call WAVEBANDS_INIT_VARI(MyThid)
109 #endif
110
111 c ANNA get alphachl from mQyield / aphy_chl
112 c ANNA must do this after params are assigned, but before written out
113 c ANNA use aphy_chl_ps for growth. To turn off, simply set same coefs as aphy_chl in input files.
114 #ifdef GEIDER
115 #ifndef WAVEBANDS
116 do np = 1,npmax
117 alphachl(np) = mQyield(np) * aphy_chl_ave
118 c C:CHl minimum: chosen to be Chl:C at high light (2000uEin/m2/s) and
119 c no temp/nutrient limitation
120 c chl2cmin(np)=chl2cmax(np)/
121 c & (1+(chl2cmax(np)*alphachl(np)*2000. _d 0)/
122 c & (2*pcmax(np)))
123 chl2cmin(np)=0. _d 0
124 enddo
125 #else
126 do np = 1,npmax
127 do nl = 1,tlam
128 alphachl_nl(np,nl) = mQyield(np) * aphy_chl_ps(np,nl)
129 end do
130 c find mean
131 cu_area = 0.d0
132 do nl = 1,tlam
133 cu_area = cu_area + wb_width(nl)*alphachl_nl(np,nl)
134 end do
135 alpha_mean(np) = cu_area / wb_totalWidth
136
137 chl2cmin(np)=chl2cmax(np)/
138 & (1+(chl2cmax(np)* alpha_mean(np) *2000. _d 0)/
139 & (2*pcmax(np)))
140 end do
141 #endif
142 #ifdef DYNAMIC_CHL
143 c check Chl fields are reasonable
144 #ifndef WAVEBANDS
145 do np = 1,npmax
146 c C:CHl minimum: chosen to be Chl:C at high light (2000uEin/m2/s) and
147 c no temp/nutrient limitation
148 chl2cmin(np)=chl2cmax(np)/
149 & (1+(chl2cmax(np)*alphachl(np)*2000. _d 0)/
150 & (2*pcmax(np)))
151 chl2cmin(np)=0. _d 0
152 enddo
153 #else
154 do np=1,npmax
155 chl2cmin(np)=chl2cmax(np)/
156 & (1+(chl2cmax(np)* alpha_mean(np) *2000. _d 0)/
157 & (2*pcmax(np)))
158 enddo
159 #endif
160 #endif
161 #endif
162
163 IF ( myProcId.EQ.0 .AND. myThid.EQ.1 ) THEN
164 c write out initial phyto characteristics
165 #ifndef GEIDER
166 CALL MDSFINDUNIT( IniUnit1, mythid )
167 open(IniUnit1,file='plankton-ini-char.dat',status='unknown')
168 CALL MDSFINDUNIT( IniUnit2, mythid )
169 open(IniUnit2,file='plankton_ini_char_nohead.dat',
170 & status='unknown')
171 #ifdef OLD_GRAZE
172 write(IniUnit1,*)'dico diaz size mu mort Rnp Rfep Rsip
173 & wsink KsP KsN KsFe KsSi g1 g2 Kpar Kinh
174 & Topt nsrc np'
175 do np = 1, npmax
176 write(IniUnit1,110)diacoc(np),diazotroph(np),physize(np),
177 & 1.0/(mu(np)*86400.), 1.0/(mortphy(np)*86400.),
178 & R_NP(np),R_FeP(np)*1000.,R_SiP(np),
179 & wsink(np),
180 & KsatPO4(np),KsatNO3(np),KsatFeT(np)*1000.
181 & ,KsatSi(np),
182 & graze(np,1),graze(np,2),
183 & KsatPAR(np),Kinhib(np),
184 & phytoTempOptimum(np),nsource(np),np
185 write(IniUnit2,110)diacoc(np),diazotroph(np),physize(np),
186 & 1.0/(mu(np)*86400.),1.0/(mortphy(np)*86400.),
187 & R_NP(np),R_FeP(np)*1000.,R_SiP(np),
188 & wsink(np),
189 & KsatPO4(np),KsatNO3(np),KsatFeT(np)*1000.
190 & ,KsatSi(np),
191 & graze(np,1),graze(np,2),
192 & KsatPAR(np),Kinhib(np),
193 & phytoTempOptimum(np),nsource(np),np
194 end do
195 #else
196 write(IniUnit1,*)'dico diaz size mu mort Rnp Rfep Rsip wsink
197 & KsP KsN KsFe KsSi palat1 palat2 Kpar Kinh Topt nsrc
198 & np'
199 do np = 1, npmax
200 write(IniUnit1,111)diacoc(np),diazotroph(np),physize(np),
201 & 1.0/(mu(np)*86400.), 1.0/(mortphy(np)*86400.),
202 & R_NP(np),R_FeP(np)*1000.,R_SiP(np),
203 & wsink(np),
204 & KsatPO4(np),KsatNO3(np),KsatFeT(np)*1000.
205 & ,KsatSi(np),
206 & palat(np,1),palat(np,2),
207 & KsatPAR(np),Kinhib(np),
208 & phytoTempOptimum(np),nsource(np),np
209 write(IniUnit2,111)diacoc(np),diazotroph(np),physize(np),
210 & 1.0/(mu(np)*86400.),1.0/(mortphy(np)*86400.),
211 & R_NP(np),R_FeP(np)*1000.,R_SiP(np),
212 & wsink(np),
213 & KsatPO4(np),KsatNO3(np),KsatFeT(np)*1000.
214 & ,KsatSi(np),
215 & palat(np,1),palat(np,2),
216 & KsatPAR(np),Kinhib(np),
217 & phytoTempOptimum(np),nsource(np),np
218 end do
219 #endif
220 #endif
221
222 #ifdef GEIDER
223 c ANNA outputs mQyield as 10^(4) mmol C (uEin)-1
224 CALL MDSFINDUNIT( IniUnit1, mythid )
225 open(IniUnit1,file='gplankton-ini-char.dat',status='unknown')
226 CALL MDSFINDUNIT( IniUnit2, mythid )
227 open(IniUnit2,file='gplankton_ini_char_nohead.dat',
228 & status='unknown')
229 write(IniUnit1,*)'dico diaz size pcmax mort Rnp Rfep Rsip wsink
230 & KsP KsN KsFe KsSi palat1 palat2 mQY(-4) chl2c Topt nsrc
231 & np'
232 do np = 1, npmax
233 write(IniUnit1,111)diacoc(np),diazotroph(np),physize(np),
234 & 1.0/(pcmax(np)*86400.), 1.0/(mortphy(np)*86400.),
235 & R_NP(np),R_FeP(np)*1000.,R_SiP(np),
236 & wsink(np),
237 & KsatPO4(np),KsatNO3(np),KsatFeT(np)*1000.
238 & ,KsatSi(np),
239 & palat(np,1),palat(np,2),
240 & mQyield(np)*1e4,chl2cmax(np),
241 & phytoTempOptimum(np),nsource(np),np
242 write(IniUnit2,111)diacoc(np),diazotroph(np),physize(np),
243 & 1.0/(pcmax(np)*86400.), 1.0/(mortphy(np)*86400.),
244 & R_NP(np),R_FeP(np)*1000.,R_SiP(np),
245 & wsink(np),
246 & KsatPO4(np),KsatNO3(np),KsatFeT(np)*1000.
247 & ,KsatSi(np),
248 & palat(np,1),palat(np,2),
249 & mQyield(np)*1e4,chl2cmax(np),
250 & phytoTempOptimum(np),nsource(np),np
251 end do
252 #endif
253
254 close(IniUnit2)
255 close(IniUnit1)
256 110 format(3f4.0,f6.2,4f4.0,f5.1,4f7.3,2e11.2,2f9.4,f6.1,2i5)
257 111 format(3f4.0,f6.2,4f4.0,f5.1,4f7.3,2f6.1,2f9.4,f6.1,2i5)
258
259 #ifdef CHECK_CONS
260 coj find unused units for darwin_cons output
261 CALL MDSFINDUNIT( DAR_cons_unitP, mythid )
262 open(DAR_cons_unitP,file='darwin_cons_P.txt',status='unknown')
263 CALL MDSFINDUNIT( DAR_cons_unitN, mythid )
264 open(DAR_cons_unitN,file='darwin_cons_N.txt',status='unknown')
265 CALL MDSFINDUNIT( DAR_cons_unitF, mythid )
266 open(DAR_cons_unitF,file='darwin_cons_Fe.txt',status='unknown')
267 CALL MDSFINDUNIT( DAR_cons_unitS, mythid )
268 open(DAR_cons_unitS,file='darwin_cons_Si.txt',status='unknown')
269 #ifdef ALLOW_CARBON
270 CALL MDSFINDUNIT( DAR_cons_unitC, mythid )
271 open(DAR_cons_unitC,file='darwin_cons_C.txt',status='unknown')
272 CALL MDSFINDUNIT( DAR_cons_unitA, mythid )
273 open(DAR_cons_unitA,file='darwin_cons_A.txt',status='unknown')
274 CALL MDSFINDUNIT( DAR_cons_unitO, mythid )
275 open(DAR_cons_unitO,file='darwin_cons_O.txt',status='unknown')
276 #endif
277 #endif
278
279 c myProcId and myThid
280 ENDIF
281
282 WRITE(msgBuf,'(A)')
283 & '// ======================================================='
284 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
285 & SQUEEZE_RIGHT, myThid )
286 WRITE(msgBuf,'(A)') '// Darwin init variables >>> END <<<'
287 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
288 & SQUEEZE_RIGHT, myThid )
289 WRITE(msgBuf,'(A)')
290 & '// ======================================================='
291 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
292 & SQUEEZE_RIGHT, myThid )
293
294 _END_MASTER( myThid )
295 _BARRIER
296
297 C ----------------------------------------------------------------------
298 C From here on we do actual 3d stuff appropriate for init_varia
299
300 c reduce amount of diaz
301 #ifdef ALLOW_DIAZ
302 IF (nIter0.EQ.PTRACERS_Iter0) THEN
303 do np = 1, npmax
304 if (diazotroph(np) .eq. 1. _d 0) then
305 DO bj = myByLo(myThid), myByHi(myThid)
306 DO bi = myBxLo(myThid), myBxHi(myThid)
307 DO j=1-Oly,sNy+Oly
308 DO i=1-Olx,sNx+Olx
309 DO k=1,nR
310 Ptracer(i,j,k,bi,bj,iPhy+np-1) =
311 & Ptracer(i,j,k,bi,bj,iPhy+np-1)/10. _d 0
312 ENDDO
313 ENDDO
314 ENDDO
315 ENDDO
316 ENDDO
317 endif
318 enddo
319 ENDIF
320 #endif
321
322 #ifdef FIX_ZOO_QUOTAS
323 do nz = 1, nzmax
324 DO bj = myByLo(myThid), myByHi(myThid)
325 DO bi = myBxLo(myThid), myBxHi(myThid)
326 DO j=1-Oly,sNy+Oly
327 DO i=1-Olx,sNx+Olx
328 DO k=1,nR
329 Ptracer(i,j,k,bi,bj,iZooN(nz)) =
330 & Ptracer(i,j,k,bi,bj,iZooP(nz))*R_NP_zoo(nz)
331 Ptracer(i,j,k,bi,bj,iZooFe(nz)) =
332 & Ptracer(i,j,k,bi,bj,iZooP(nz))*R_FeP_zoo(nz)
333 Ptracer(i,j,k,bi,bj,iZooSi(nz)) =
334 & Ptracer(i,j,k,bi,bj,iZooP(nz))*R_SiP_zoo(nz)
335 Ptracer(i,j,k,bi,bj,iZooC(nz)) =
336 & Ptracer(i,j,k,bi,bj,iZooP(nz))*R_PC_zoo(nz)
337 ENDDO
338 ENDDO
339 ENDDO
340 ENDDO
341 ENDDO
342 enddo
343 #endif
344
345 #ifdef GEIDER
346 C this initializes fields...
347 call MONOD_CHECK_CHL(myThid)
348 #endif
349
350 CALL LEF_ZERO( fice,myThid )
351 CALL LEF_ZERO( inputFe,myThid )
352 CALL LEF_ZERO( sur_par,myThid )
353 #ifdef NUT_SUPPLY
354 DO bj = myByLo(myThid), myByHi(myThid)
355 DO bi = myBxLo(myThid), myBxHi(myThid)
356 DO j=1-Oly,sNy+Oly
357 DO i=1-Olx,sNx+Olx
358 DO k=1,nR
359 nut_wvel(i,j,k,bi,bj) = 0. _d 0
360 ENDDO
361 ENDDO
362 ENDDO
363 ENDDO
364 ENDDO
365 #endif
366
367 #ifdef ALLOW_PAR_DAY
368 DO iPAR=1,2
369 DO bj=myByLo(myThid), myByHi(myThid)
370 DO bi=myBxLo(myThid), myBxHi(myThid)
371 DO k=1,nR
372 DO j=1-Oly,sNy+Oly
373 DO i=1-Olx,sNx+Olx
374 PARday(i,j,k,bi,bj,iPAR) = 0. _d 0
375 ENDDO
376 ENDDO
377 ENDDO
378 ENDDO
379 ENDDO
380 ENDDO
381 #endif
382
383 IF ( .NOT. ( startTime .EQ. baseTime .AND. nIter0 .EQ. 0
384 & .AND. pickupSuff .EQ. ' ') ) THEN
385 COJ should probably initialize from a file when nIter0 .EQ. 0
386 CALL DARWIN_READ_PICKUP( nIter0, myThid )
387 ENDIF
388 c
389 #ifdef ALLOW_TIMEAVE
390 c set arrays to zero if first timestep
391 DO bj = myByLo(myThid), myByHi(myThid)
392 DO bi = myBxLo(myThid), myBxHi(myThid)
393 CALL TIMEAVE_RESET(PARave, Nr, bi, bj, myThid)
394 CALL TIMEAVE_RESET(PPave, Nr, bi, bj, myThid)
395 CALL TIMEAVE_RESET(Chlave, Nr, bi, bj, myThid)
396 CALL TIMEAVE_RESET(Nfixave, Nr, bi, bj, myThid)
397 CALL TIMEAVE_RESET(Denitave, Nr, bi, bj, myThid)
398 #ifdef DAR_DIAG_PARW
399 do i=1,tlam
400 CALL TIMEAVE_RESET(PARwave(1-OLx,1-OLy,1,1,1,i),
401 & Nr,bi,bj,myThid)
402 enddo
403 do np=1,npmax
404 CALL TIMEAVE_RESET(chl2cave(1-OLx,1-OLy,1,1,1,np),
405 & Nr,bi,bj,myThid)
406 enddo
407 #endif
408 #ifdef DAR_DIAG_ACDOM
409 CALL TIMEAVE_RESET(aCDOMave, Nr, bi, bj, myThid)
410 #endif
411 #ifdef DAR_DIAG_IRR
412 do i=1,tlam
413 CALL TIMEAVE_RESET(Edave(1-OLx,1-OLy,1,1,1,i),
414 & Nr,bi,bj,myThid)
415 CALL TIMEAVE_RESET(Esave(1-OLx,1-OLy,1,1,1,i),
416 & Nr,bi,bj,myThid)
417 CALL TIMEAVE_RESET(Euave(1-OLx,1-OLy,1,1,1,i),
418 & Nr,bi,bj,myThid)
419 CALL TIMEAVE_RESET(Estave(1-OLx,1-OLy,1,1,1,i),
420 & Nr,bi,bj,myThid)
421 CALL TIMEAVE_RESET(Eutave(1-OLx,1-OLy,1,1,1,i),
422 & Nr,bi,bj,myThid)
423 enddo
424 #endif
425 #ifdef DAR_DIAG_IRR_AMPS
426 do i=1,tlam
427 CALL TIMEAVE_RESET(amp1ave(1-OLx,1-OLy,1,1,1,i),
428 & Nr,bi,bj,myThid)
429 CALL TIMEAVE_RESET(amp2ave(1-OLx,1-OLy,1,1,1,i),
430 & Nr,bi,bj,myThid)
431 enddo
432 #endif
433 #ifdef DAR_DIAG_ABSORP
434 do i=1,tlam
435 CALL TIMEAVE_RESET(aave(1-OLx,1-OLy,1,1,1,i),
436 & Nr,bi,bj,myThid)
437 enddo
438 #endif
439 #ifdef DAR_DIAG_SCATTER
440 do i=1,tlam
441 CALL TIMEAVE_RESET(btave(1-OLx,1-OLy,1,1,1,i),
442 & Nr,bi,bj,myThid)
443 CALL TIMEAVE_RESET(bbave(1-OLx,1-OLy,1,1,1,i),
444 & Nr,bi,bj,myThid)
445 enddo
446 #endif
447 #ifdef DAR_DIAG_PART_SCATTER
448 do i=1,tlam
449 CALL TIMEAVE_RESET(apartave(1-OLx,1-OLy,1,1,1,i),
450 & Nr,bi,bj,myThid)
451 CALL TIMEAVE_RESET(btpartave(1-OLx,1-OLy,1,1,1,i),
452 & Nr,bi,bj,myThid)
453 CALL TIMEAVE_RESET(bbpartave(1-OLx,1-OLy,1,1,1,i),
454 & Nr,bi,bj,myThid)
455 enddo
456 #endif
457 #ifdef DAR_RADTRANS
458 CALL TIMEAVE_RESET(rmudave(1-OLx,1-OLy,1,1),
459 & 1,bi,bj,myThid)
460 #endif
461 c ANNA_TAVE
462 #ifdef WAVES_DIAG_PCHL
463 do np=1,npmax
464 CALL TIMEAVE_RESET(Pchlave(1-OLx,1-OLy,1,1,1,np),
465 & Nr,bi,bj,myThid)
466 enddo
467 #endif
468 c ANNA end TAVE
469 #ifdef DAR_DIAG_EK
470 do np=1,npmax
471 CALL TIMEAVE_RESET(Ekave(1-OLx,1-OLy,1,1,1,np),
472 & Nr,bi,bj,myThid)
473 CALL TIMEAVE_RESET(EkoverEave(1-OLx,1-OLy,1,1,1,np),
474 & Nr,bi,bj,myThid)
475 do i=1,tlam
476 CALL TIMEAVE_RESET(Ek_nlave(1-OLx,1-OLy,1,1,1,np,i),
477 & Nr,bi,bj,myThid)
478 CALL TIMEAVE_RESET(EkoverE_nlave(1-OLx,1-OLy,1,1,1,np,i),
479 & Nr,bi,bj,myThid)
480 enddo
481 enddo
482 #endif
483 #ifdef DAR_DIAG_RSTAR
484 do np=1,npmax
485 CALL TIMEAVE_RESET(Rstarave(1-OLx,1-OLy,1,1,1,np),
486 & Nr,bi,bj,myThid)
487 CALL TIMEAVE_RESET(RNstarave(1-OLx,1-OLy,1,1,1,np),
488 & Nr,bi,bj,myThid)
489 enddo
490 #endif
491 #ifdef DAR_DIAG_DIVER
492 CALL TIMEAVE_RESET(Diver1ave, Nr, bi, bj, myThid)
493 CALL TIMEAVE_RESET(Diver2ave, Nr, bi, bj, myThid)
494 CALL TIMEAVE_RESET(Diver3ave, Nr, bi, bj, myThid)
495 CALL TIMEAVE_RESET(Diver4ave, Nr, bi, bj, myThid)
496 #endif
497 #ifdef ALLOW_DIAZ
498 #ifdef DAR_DIAG_NFIXP
499 do np=1,npmax
500 CALL TIMEAVE_RESET(NfixPave(1-OLx,1-OLy,1,1,1,np),
501 & Nr,bi,bj,myThid)
502 enddo
503 #endif
504 #endif
505 c CALL TIMEAVE_RESET(SURave, 1, bi, bj, myThid)
506
507 DAR_timeAve(bi,bj)=0. _d 0
508 ENDDO
509 ENDDO
510 #endif /* ALLOW_TIMEAVE */
511
512
513 RETURN
514 END
515 #endif /*MONOD*/
516 #endif /*ALLOW_PTRACERS*/
517 c ==========================================================
518

  ViewVC Help
Powered by ViewVC 1.1.22