/[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.7 - (hide annotations) (download)
Fri May 6 20:34:16 2005 UTC (19 years, 1 month ago) by molod
Branch: MAIN
CVS Tags: checkpoint57h_done, checkpoint57h_pre, checkpoint57h_post
Changes since 1.6: +6 -1 lines
Move initialization of counters from diag init early to diag init varia (where it belongs)

1 molod 1.7 C $Header: /u/gcmpack/MITgcm/pkg/diagnostics/diagnostics_init_varia.F,v 1.6 2005/02/23 15:15:30 edhill 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: 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    
17     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     INTEGER i,j,n,bi,bj
31 edhill 1.2 CHARACTER*(80) fn
32 edhill 1.4
33 jmc 1.1 C Zero out the qdiag array which accumulates during integration
34     DO bj = myByLo(myThid), myByHi(myThid)
35     DO bi = myBxLo(myThid), myBxHi(myThid)
36     DO n = 1,numdiags
37     DO j = 1-Oly,sNy+Oly
38     DO i = 1-Olx,sNx+Olx
39     qdiag(i,j,n,bi,bj) = 0. _d 0
40     ENDDO
41     ENDDO
42     ENDDO
43     ENDDO
44     ENDDO
45    
46 molod 1.7 C Zero out the counters for the qdiag array
47     do n=1,ndiagMax
48     ndiag(n) = 0
49     enddo
50    
51 edhill 1.6 CALL DIAGNOSTICS_READ_PICKUP( myThid )
52 edhill 1.5
53 jmc 1.1 RETURN
54     END

  ViewVC Help
Powered by ViewVC 1.1.22