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

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

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


Revision 1.12 - (hide annotations) (download)
Tue Feb 5 15:31:19 2008 UTC (16 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59o, checkpoint59n, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.11: +2 -2 lines
minor modifications for many diagnostics:
- modify "available_diagnostics.log" and diagnostics summary (write mate number)
- use wider (integer) format (generally, use I6) to write diagnostics number
- rename numdiags --> numDiags (to differentiate from mdiag)

1 jmc 1.12 C $Header: /u/gcmpack/MITgcm/pkg/diagnostics/diagnostics_init_varia.F,v 1.11 2006/11/04 14:28:09 heimbach Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "DIAG_OPTIONS.h"
5 jmc 1.9
6 jmc 1.1 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7     CBOP 0
8     C !ROUTINE: DIAGNOSTICS_INIT_VARIA
9    
10     C !INTERFACE:
11 edhill 1.2 SUBROUTINE DIAGNOSTICS_INIT_VARIA(
12     I myThid )
13 jmc 1.1
14     C !DESCRIPTION:
15     C Initialize the qdiag array which accumulates during integration
16 jmc 1.9
17 jmc 1.1 C !USES:
18     IMPLICIT NONE
19 edhill 1.2 #include "SIZE.h"
20 jmc 1.1 #include "EEPARAMS.h"
21 edhill 1.2 #include "PARAMS.h"
22 jmc 1.1 #include "DIAGNOSTICS_SIZE.h"
23     #include "DIAGNOSTICS.h"
24    
25     C !INPUT PARAMETERS:
26     INTEGER myThid
27     CEOP
28    
29     C !LOCAL VARIABLES:
30 jmc 1.9 INTEGER i,j,k,bi,bj
31 edhill 1.4
32 jmc 1.1 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 jmc 1.12 DO k = 1,numDiags
36 jmc 1.1 DO j = 1-Oly,sNy+Oly
37     DO i = 1-Olx,sNx+Olx
38 jmc 1.8 qdiag(i,j,k,bi,bj) = 0. _d 0
39 jmc 1.1 ENDDO
40     ENDDO
41 jmc 1.9 C Zero out the counters for the qdiag array
42     ndiag(k,bi,bj) = 0
43 jmc 1.1 ENDDO
44 jmc 1.10 DO k = 1,numlists
45     C Zero out the index array for periodic averaging diagnostic
46     pdiag(k,bi,bj) = 0
47     ENDDO
48 jmc 1.1 ENDDO
49     ENDDO
50    
51 jmc 1.8 C Zero out the qSdiag array (statistics) which accumulates during integration
52     DO bj = myByLo(myThid), myByHi(myThid)
53     DO bi = myBxLo(myThid), myBxHi(myThid)
54 jmc 1.9 DO k = 1,diagSt_size
55 jmc 1.8 DO j = 0,nRegions
56     DO i = 0,nStats
57     qSdiag(i,j,k,bi,bj) = 0. _d 0
58     ENDDO
59     ENDDO
60     ENDDO
61     ENDDO
62     ENDDO
63    
64 edhill 1.6 CALL DIAGNOSTICS_READ_PICKUP( myThid )
65 edhill 1.5
66 jmc 1.9 CALL DIAGNOSTICS_SUMMARY( startTime, nIter0, myThid )
67    
68     RETURN
69 jmc 1.1 END

  ViewVC Help
Powered by ViewVC 1.1.22