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

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

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


Revision 1.2 - (hide annotations) (download)
Sun Jun 26 16:51:49 2005 UTC (18 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint64z, checkpoint57t_post, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint57o_post, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58e_post, mitgcm_mapl_00, checkpoint58u_post, checkpoint58w_post, checkpoint57m_post, checkpoint57s_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint57k_post, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint58r_post, checkpoint57y_post, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint57y_pre, checkpoint58q_post, checkpoint57v_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint58f_post, checkpoint57x_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, 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, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint58m_post, checkpoint57l_post, HEAD
Changes since 1.1: +12 -10 lines
change pointers so that 1 diag. can be used several times (with # freq.)

1 jmc 1.2 C $Header: /u/gcmpack/MITgcm/pkg/diagnostics/diagstats_clear.F,v 1.1 2005/05/20 07:28:50 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "DIAG_OPTIONS.h"
5    
6     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7     CBOP 0
8     C !ROUTINE: DIAGSTATS_CLEAR
9    
10     C !INTERFACE:
11     SUBROUTINE DIAGSTATS_CLEAR( listId, myThid)
12    
13     C !DESCRIPTION:
14     C Clear statistics-diagnostics specified in 1 output stream list
15    
16     C !USES:
17     IMPLICIT NONE
18     #include "EEPARAMS.h"
19     #include "SIZE.h"
20     #include "DIAGNOSTICS_SIZE.h"
21     #include "DIAGNOSTICS.h"
22    
23     C !INPUT PARAMETERS:
24     C listId :: Diagnostics list number being written
25     C myThid :: my Thread Id number
26     INTEGER listId, myThid
27     CEOP
28    
29     C !LOCAL VARIABLES:
30 jmc 1.2 INTEGER m, ndId, iSp
31 jmc 1.1
32 jmc 1.2 DO m=1,diagSt_nbActv(listId)
33     IF ( iSdiag(m,listId).GT.0 ) THEN
34     ndId = jSdiag(m,listId)
35     iSp = iSdiag(m,listId)
36     CALL DIAGSTATS_CLRDIAG( ndId, iSp, myThid )
37 jmc 1.1 ENDIF
38     ENDDO
39    
40     RETURN
41     END
42    
43     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
44    
45     CBOP 0
46     C !ROUTINE: DIAGSTATS_CLEAR
47    
48     C !INTERFACE:
49 jmc 1.2 SUBROUTINE DIAGSTATS_CLRDIAG( ndId, iSp, myThid )
50 jmc 1.1
51     C !DESCRIPTION:
52 jmc 1.2 C Zero out 1 statistics-diagnostic array
53 jmc 1.1
54     C !USES:
55     IMPLICIT NONE
56     #include "EEPARAMS.h"
57     #include "SIZE.h"
58     #include "DIAGNOSTICS_SIZE.h"
59     #include "DIAGNOSTICS.h"
60    
61     C !INPUT PARAMETERS:
62     C ndId :: Diagnostics Id Number (in available diag. list) to zero out
63 jmc 1.2 C iSp :: diagnostic pointer to storage array
64 jmc 1.1 C myThid :: my Thread Id number
65 jmc 1.2 INTEGER ndId, iSp, myThid
66 jmc 1.1 CEOP
67    
68     C !LOCAL VARIABLES:
69     INTEGER bi,bj
70     INTEGER i,j,k
71    
72     C **********************************************************************
73     C **** SET DIAGNOSTIC AND COUNTER TO ZERO ****
74     C **********************************************************************
75    
76     DO bj=myByLo(myThid), myByHi(myThid)
77     DO bi=myBxLo(myThid), myBxHi(myThid)
78 jmc 1.2 DO k = iSp,iSp+kdiag(ndId)-1
79 jmc 1.1 DO j = 0,nRegions
80     DO i = 0,nStats
81     qSdiag(i,j,k,bi,bj) = 0.
82     ENDDO
83     ENDDO
84     ENDDO
85     ENDDO
86     ENDDO
87    
88     RETURN
89     END

  ViewVC Help
Powered by ViewVC 1.1.22