/[MITgcm]/MITgcm_contrib/darwin2/pkg/darwin/dic_diags_init.F
ViewVC logotype

Annotation of /MITgcm_contrib/darwin2/pkg/darwin/dic_diags_init.F

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


Revision 1.2 - (hide annotations) (download)
Wed Oct 9 17:14:37 2013 UTC (11 years, 9 months ago) by stephd
Branch: MAIN
CVS Tags: ctrb_darwin2_ckpt64r_20131210, ctrb_darwin2_ckpt64o_20131024, ctrb_darwin2_ckpt64p_20131118, ctrb_darwin2_ckpt64q_20131118, ctrb_darwin2_ckpt64p_20131024
Changes since 1.1: +5 -0 lines
o changes so that pH and pCO2 can be calculated for full water column
  by defining pH_3D in DARWIN_OPTIONS.h. Includes 3D diags and pickup

1 jahn 1.1 #include "CPP_OPTIONS.h"
2     #include "PTRACERS_OPTIONS.h"
3     #include "DARWIN_OPTIONS.h"
4    
5     #ifdef ALLOW_PTRACERS
6     #ifdef ALLOW_DARWIN
7    
8     #ifdef ALLOW_CARBON
9    
10     CBOP
11     C !ROUTINE: DIC_DIAGS_INIT
12    
13     C !INTERFACE: ==========================================================
14     SUBROUTINE DIC_DIAGS_INIT( myThid )
15    
16     C !DESCRIPTION:
17     C DIC diagnostic initialization
18    
19     C !USES: ===============================================================
20     IMPLICIT NONE
21     #include "SIZE.h"
22     #include "EEPARAMS.h"
23     #include "PARAMS.h"
24     #include "DARWIN_FLUX.h"
25    
26     c!INPUT PARAMETERS: ===================================================
27     C myThid :: thread number
28     INTEGER myThid
29    
30    
31     C !LOCAL VARIABLES: ====================================================
32     INTEGER bi, bj, k
33     CHARACTER*(MAX_LEN_MBUF) suff
34     CEOP
35    
36     #ifdef ALLOW_TIMEAVE
37     c set arrays to zero if first timestep
38     DO bj = myByLo(myThid), myByHi(myThid)
39     DO bi = myBxLo(myThid), myBxHi(myThid)
40     CALL TIMEAVE_RESET(SURave, 1, bi, bj, myThid)
41     CALL TIMEAVE_RESET(SURCave, 1, bi, bj, myThid)
42     CALL TIMEAVE_RESET(SUROave, 1, bi, bj, myThid)
43 stephd 1.2 #ifdef pH_3D
44     CALL TIMEAVE_RESET(pCO2ave, Nr, bi, bj, myThid)
45     CALL TIMEAVE_RESET(pHave, Nr, bi, bj, myThid)
46     #else
47 jahn 1.1 CALL TIMEAVE_RESET(pCO2ave, 1, bi, bj, myThid)
48     CALL TIMEAVE_RESET(pHave, 1, bi, bj, myThid)
49 stephd 1.2 #endif
50 jahn 1.1 print*,'QQ start timeave'
51     do k=1,Nr
52     DIC_TimeAve(bi,bj,k)=0.d0
53     enddo
54     ENDDO
55     ENDDO
56     #endif /* ALLOW_TIMEAVE */
57    
58     RETURN
59     END
60     #endif /*ALLOW_CARBON*/
61    
62     #endif /*DARWIN*/
63     #endif /*ALLOW_PTRACERS*/
64     c ==================================================================
65    

  ViewVC Help
Powered by ViewVC 1.1.22