1 |
#include "CPP_EEOPTIONS.h" |
2 |
|
3 |
CStartofinterface |
4 |
SUBROUTINE TIMEAVER_INI_XYZ( fldtave, bi, bj, K, myThid ) |
5 |
C /==========================================================\ |
6 |
C | SUBROUTINE TIMEAVER_INI_XYZ | |
7 |
C | o Initialize 3D array | |
8 |
C \==========================================================/ |
9 |
IMPLICIT NONE |
10 |
|
11 |
C == Global variables === |
12 |
#include "SIZE.h" |
13 |
#include "EEPARAMS.h" |
14 |
#include "AVER.h" |
15 |
|
16 |
C == Routine arguments == |
17 |
C myThid - Thread number for this instance of the routine. |
18 |
C fldtave - time averaged Field |
19 |
INTEGER bi, bj, K, myThid |
20 |
_RL fldtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
21 |
|
22 |
CEndofinterface |
23 |
|
24 |
C == Local variables == |
25 |
C i,j,k,bi,bj - Loop counters |
26 |
INTEGER i, j |
27 |
|
28 |
C DO bj = myByLo(myThid), myByHi(myThid) |
29 |
C DO bi = myBxLo(myThid), myBxHi(myThid) |
30 |
C DO k=1,Nr |
31 |
DO j=1,sNy |
32 |
DO i=1,sNx |
33 |
fldtave(i,j,k,bi,bj) = 0. _d 0 |
34 |
ENDDO |
35 |
ENDDO |
36 |
C ENDDO |
37 |
C ENDDO |
38 |
C ENDDO |
39 |
|
40 |
RETURN |
41 |
END |