/[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.14 - (show annotations) (download)
Tue Jun 2 20:58:22 2015 UTC (8 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65n, checkpoint65o, checkpoint65m, HEAD
Changes since 1.13: +3 -1 lines
add few _BARRIER around anyupdate of "diag_pkgStatus"

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

  ViewVC Help
Powered by ViewVC 1.1.22