2 |
C $Name$ |
C $Name$ |
3 |
|
|
4 |
#include "DIAG_OPTIONS.h" |
#include "DIAG_OPTIONS.h" |
5 |
|
|
6 |
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
7 |
CBOP 0 |
CBOP 0 |
8 |
C !ROUTINE: DIAGNOSTICS_INIT_VARIA |
C !ROUTINE: DIAGNOSTICS_INIT_VARIA |
9 |
|
|
10 |
C !INTERFACE: |
C !INTERFACE: |
11 |
SUBROUTINE DIAGNOSTICS_INIT_VARIA(myThid) |
SUBROUTINE DIAGNOSTICS_INIT_VARIA( |
12 |
|
I myThid ) |
13 |
|
|
14 |
C !DESCRIPTION: |
C !DESCRIPTION: |
15 |
C Initialize the qdiag array which accumulates during integration |
C Initialize the qdiag array which accumulates during integration |
16 |
|
|
17 |
C !USES: |
C !USES: |
18 |
IMPLICIT NONE |
IMPLICIT NONE |
|
#include "EEPARAMS.h" |
|
19 |
#include "SIZE.h" |
#include "SIZE.h" |
20 |
|
#include "EEPARAMS.h" |
21 |
|
#include "PARAMS.h" |
22 |
#include "DIAGNOSTICS_SIZE.h" |
#include "DIAGNOSTICS_SIZE.h" |
23 |
#include "DIAGNOSTICS.h" |
#include "DIAGNOSTICS.h" |
24 |
|
|
27 |
CEOP |
CEOP |
28 |
|
|
29 |
C !LOCAL VARIABLES: |
C !LOCAL VARIABLES: |
30 |
INTEGER i,j,n,bi,bj |
INTEGER i,j,k,bi,bj |
31 |
|
|
32 |
C Zero out the qdiag array which accumulates during integration |
C Zero out the qdiag array which accumulates during integration |
33 |
DO bj = myByLo(myThid), myByHi(myThid) |
DO bj = myByLo(myThid), myByHi(myThid) |
34 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
DO bi = myBxLo(myThid), myBxHi(myThid) |
35 |
DO n = 1,numdiags |
DO k = 1,numdiags |
36 |
DO j = 1-Oly,sNy+Oly |
DO j = 1-Oly,sNy+Oly |
37 |
DO i = 1-Olx,sNx+Olx |
DO i = 1-Olx,sNx+Olx |
38 |
qdiag(i,j,n,bi,bj) = 0. _d 0 |
qdiag(i,j,k,bi,bj) = 0. _d 0 |
39 |
ENDDO |
ENDDO |
40 |
ENDDO |
ENDDO |
41 |
|
C Zero out the counters for the qdiag array |
42 |
|
ndiag(k,bi,bj) = 0 |
43 |
|
ENDDO |
44 |
|
DO k = 1,numlists |
45 |
|
C Zero out the index array for periodic averaging diagnostic |
46 |
|
pdiag(k,bi,bj) = 0 |
47 |
ENDDO |
ENDDO |
48 |
ENDDO |
ENDDO |
49 |
ENDDO |
ENDDO |
50 |
|
|
51 |
RETURN |
C Zero out the qSdiag array (statistics) which accumulates during integration |
52 |
|
DO bj = myByLo(myThid), myByHi(myThid) |
53 |
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
54 |
|
DO k = 1,diagSt_size |
55 |
|
DO j = 0,nRegions |
56 |
|
DO i = 0,nStats |
57 |
|
qSdiag(i,j,k,bi,bj) = 0. _d 0 |
58 |
|
ENDDO |
59 |
|
ENDDO |
60 |
|
ENDDO |
61 |
|
ENDDO |
62 |
|
ENDDO |
63 |
|
|
64 |
|
CALL DIAGNOSTICS_READ_PICKUP( myThid ) |
65 |
|
|
66 |
|
CALL DIAGNOSTICS_SUMMARY( startTime, nIter0, myThid ) |
67 |
|
|
68 |
|
RETURN |
69 |
END |
END |