1 |
C $Header: /u/gcmpack/MITgcm/pkg/dic/dic_biotic_init.F,v 1.9 2009/08/04 18:33:07 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "DIC_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: DIC_BIOTIC_INIT |
8 |
|
9 |
C !INTERFACE: ========================================================== |
10 |
SUBROUTINE DIC_BIOTIC_INIT( myThid ) |
11 |
|
12 |
C !DESCRIPTION: |
13 |
C DIC diagnostic initialization |
14 |
|
15 |
C !USES: =============================================================== |
16 |
IMPLICIT NONE |
17 |
#include "SIZE.h" |
18 |
#include "EEPARAMS.h" |
19 |
#include "PARAMS.h" |
20 |
#include "DIC_VARS.h" |
21 |
|
22 |
c!INPUT PARAMETERS: =================================================== |
23 |
C myThid :: thread number |
24 |
INTEGER myThid |
25 |
CEOP |
26 |
|
27 |
#ifdef DIC_BIOTIC |
28 |
#ifdef ALLOW_TIMEAVE |
29 |
|
30 |
C !LOCAL VARIABLES: ==================================================== |
31 |
INTEGER bi, bj |
32 |
c CHARACTER*(MAX_LEN_MBUF) suff |
33 |
|
34 |
C set arrays to zero if first timestep |
35 |
DO bj = myByLo(myThid), myByHi(myThid) |
36 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
37 |
CALL TIMEAVE_RESET(BIOave, Nr, bi, bj, myThid) |
38 |
CALL TIMEAVE_RESET(CARave, Nr, bi, bj, myThid) |
39 |
CALL TIMEAVE_RESET(SURave, 1, bi, bj, myThid) |
40 |
CALL TIMEAVE_RESET(SUROave, 1, bi, bj, myThid) |
41 |
CALL TIMEAVE_RESET(pCO2ave, 1, bi, bj, myThid) |
42 |
CALL TIMEAVE_RESET(pHave, 1, bi, bj, myThid) |
43 |
CALL TIMEAVE_RESET(fluxCO2ave, 1, bi, bj, myThid) |
44 |
CALL TIMEAVE_RESET(OmegaCave, Nr, bi, bj, myThid) |
45 |
CALL TIMEAVE_RESET(pfluxave, Nr, bi, bj, myThid) |
46 |
CALL TIMEAVE_RESET(epfluxave, Nr, bi, bj, myThid) |
47 |
CALL TIMEAVE_RESET(cfluxave, Nr, bi, bj, myThid) |
48 |
c print*,'QQ start timeave' |
49 |
DIC_timeAve(bi,bj) = 0. _d 0 |
50 |
ENDDO |
51 |
ENDDO |
52 |
|
53 |
#endif /* ALLOW_TIMEAVE */ |
54 |
#endif /* DIC_BIOTIC */ |
55 |
|
56 |
RETURN |
57 |
END |