/[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.9 - (hide annotations) (download)
Sun Jun 26 16:51:49 2005 UTC (18 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57t_post, checkpoint57o_post, checkpoint58e_post, checkpoint57m_post, checkpoint57s_post, checkpoint57k_post, checkpoint57y_post, checkpoint57y_pre, checkpoint57v_post, checkpoint57r_post, checkpoint58, checkpoint58f_post, checkpoint57x_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint57q_post, checkpoint57z_post, checkpoint57j_post, checkpoint58b_post, checkpoint57l_post
Changes since 1.8: +10 -11 lines
change pointers so that 1 diag. can be used several times (with # freq.)

1 jmc 1.9 C $Header: /u/gcmpack/MITgcm/pkg/diagnostics/diagnostics_init_varia.F,v 1.8 2005/05/20 07:28:50 jmc 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.8 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     ENDDO
45     ENDDO
46    
47 jmc 1.8 C Zero out the qSdiag array (statistics) which accumulates during integration
48     DO bj = myByLo(myThid), myByHi(myThid)
49     DO bi = myBxLo(myThid), myBxHi(myThid)
50 jmc 1.9 DO k = 1,diagSt_size
51 jmc 1.8 DO j = 0,nRegions
52     DO i = 0,nStats
53     qSdiag(i,j,k,bi,bj) = 0. _d 0
54     ENDDO
55     ENDDO
56     ENDDO
57     ENDDO
58     ENDDO
59    
60 edhill 1.6 CALL DIAGNOSTICS_READ_PICKUP( myThid )
61 edhill 1.5
62 jmc 1.8 CALL DIAGSTATS_INI_IO( myThid )
63    
64 jmc 1.9 CALL DIAGNOSTICS_SUMMARY( startTime, nIter0, myThid )
65    
66     RETURN
67 jmc 1.1 END

  ViewVC Help
Powered by ViewVC 1.1.22