1 |
C $Header: $ |
2 |
C $Name: $ |
3 |
#include "CPP_OPTIONS.h" |
4 |
|
5 |
CStartofinterface |
6 |
SUBROUTINE TIMEAVE_RESET( fldtave, Ksize, bi, bj, myThid ) |
7 |
C /==========================================================\ |
8 |
C | SUBROUTINE TIMEAVE_RESET | |
9 |
C | o Initialize 3D array (3rd_Dim is an argument) | |
10 |
C | Can be applied to 2D array with 3rd_Dim = 1 | |
11 |
C \==========================================================/ |
12 |
IMPLICIT NONE |
13 |
|
14 |
C == Global variables === |
15 |
#include "SIZE.h" |
16 |
#include "EEPARAMS.h" |
17 |
|
18 |
C == Routine arguments == |
19 |
C myThid - Thread number for this instance of the routine. |
20 |
C fldtave - time averaged Field |
21 |
C Ksize - 3rd dimension of local arrays "fldtave" |
22 |
INTEGER bi, bj, Ksize, myThid |
23 |
_RL fldtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Ksize,nSx,nSy) |
24 |
|
25 |
CEndofinterface |
26 |
|
27 |
C == Local variables == |
28 |
C i,j,k,bi,bj - Loop counters |
29 |
INTEGER i, j, k |
30 |
|
31 |
c DO bj = myByLo(myThid), myByHi(myThid) |
32 |
c DO bi = myBxLo(myThid), myBxHi(myThid) |
33 |
DO k=1,Ksize |
34 |
DO j=1-OLy,sNy+OLy |
35 |
DO i=1-OLx,sNx+OLx |
36 |
fldtave(i,j,k,bi,bj) = 0. _d 0 |
37 |
ENDDO |
38 |
ENDDO |
39 |
ENDDO |
40 |
c ENDDO |
41 |
c ENDDO |
42 |
|
43 |
RETURN |
44 |
END |