/[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.13 - (show annotations) (download)
Wed Aug 14 00:57:33 2013 UTC (10 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64o, checkpoint64n, checkpoint65, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65l, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e
Changes since 1.12: +14 -8 lines
track the status of pkg/diagnostics activation (updating pkgStatus)

1 C $Header: /u/gcmpack/MITgcm/pkg/diagnostics/diagnostics_init_varia.F,v 1.12 2008/02/05 15:31:19 jmc 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,bi,bj
31
32 C-- Track diagnostics pkg activation status:
33 _BEGIN_MASTER( myThid )
34 c IF ( diag_pkgStatus.NE.3 ) STOP
35 diag_pkgStatus = 10
36 _END_MASTER( myThid )
37
38 C-- Zero out the qdiag array which accumulates during integration
39 DO bj = myByLo(myThid), myByHi(myThid)
40 DO bi = myBxLo(myThid), myBxHi(myThid)
41 DO k = 1,numDiags
42 DO j = 1-OLy,sNy+OLy
43 DO i = 1-OLx,sNx+OLx
44 qdiag(i,j,k,bi,bj) = 0. _d 0
45 ENDDO
46 ENDDO
47 C- Zero out the counters for the qdiag array
48 ndiag(k,bi,bj) = 0
49 ENDDO
50 DO k = 1,numLists
51 C- Zero out the index array for periodic averaging diagnostic
52 pdiag(k,bi,bj) = 0
53 ENDDO
54 ENDDO
55 ENDDO
56
57 C-- Zero out the qSdiag array (statistics) which accumulates during integration
58 DO bj = myByLo(myThid), myByHi(myThid)
59 DO bi = myBxLo(myThid), myBxHi(myThid)
60 DO k = 1,diagSt_size
61 DO j = 0,nRegions
62 DO i = 0,nStats
63 qSdiag(i,j,k,bi,bj) = 0. _d 0
64 ENDDO
65 ENDDO
66 ENDDO
67 ENDDO
68 ENDDO
69
70 CALL DIAGNOSTICS_READ_PICKUP( myThid )
71
72 CALL DIAGNOSTICS_SUMMARY( startTime, nIter0, myThid )
73
74 RETURN
75 END

  ViewVC Help
Powered by ViewVC 1.1.22