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