/[MITgcm]/MITgcm/pkg/diagnostics/diagnostics_init_varia.F
ViewVC logotype

Contents of /MITgcm/pkg/diagnostics/diagnostics_init_varia.F

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


Revision 1.8 - (show annotations) (download)
Fri May 20 07:28:50 2005 UTC (19 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57i_post
Changes since 1.7: +19 -5 lines
Add new capability: compute & write Global/Regional & per level statistics

1 C $Header: /u/gcmpack/MITgcm/pkg/diagnostics/diagnostics_init_varia.F,v 1.7 2005/05/06 20:34:16 molod Exp $
2 C $Name: $
3
4 #include "DIAG_OPTIONS.h"
5
6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7 CBOP 0
8 C !ROUTINE: DIAGNOSTICS_INIT_VARIA
9
10 C !INTERFACE:
11 SUBROUTINE DIAGNOSTICS_INIT_VARIA(
12 I myThid )
13
14 C !DESCRIPTION:
15 C Initialize the qdiag array which accumulates during integration
16
17 C !USES:
18 IMPLICIT NONE
19 #include "SIZE.h"
20 #include "EEPARAMS.h"
21 #include "PARAMS.h"
22 #include "DIAGNOSTICS_SIZE.h"
23 #include "DIAGNOSTICS.h"
24
25 C !INPUT PARAMETERS:
26 INTEGER myThid
27 CEOP
28
29 C !LOCAL VARIABLES:
30 INTEGER i,j,k,n,bi,bj
31
32 C Zero out the qdiag array which accumulates during integration
33 DO bj = myByLo(myThid), myByHi(myThid)
34 DO bi = myBxLo(myThid), myBxHi(myThid)
35 DO k = 1,numdiags
36 DO j = 1-Oly,sNy+Oly
37 DO i = 1-Olx,sNx+Olx
38 qdiag(i,j,k,bi,bj) = 0. _d 0
39 ENDDO
40 ENDDO
41 ENDDO
42 ENDDO
43 ENDDO
44
45 C Zero out the counters for the qdiag array
46 do n=1,ndiagMax
47 ndiag(n) = 0
48 enddo
49
50 C Zero out the qSdiag array (statistics) which accumulates during integration
51 DO bj = myByLo(myThid), myByHi(myThid)
52 DO bi = myBxLo(myThid), myBxHi(myThid)
53 DO k = 1,diagSt_size
54 DO j = 0,nRegions
55 DO i = 0,nStats
56 qSdiag(i,j,k,bi,bj) = 0. _d 0
57 ENDDO
58 ENDDO
59 ENDDO
60 ENDDO
61 ENDDO
62
63 CALL DIAGNOSTICS_READ_PICKUP( myThid )
64
65 CALL DIAGSTATS_INI_IO( myThid )
66
67 RETURN
68 END

  ViewVC Help
Powered by ViewVC 1.1.22