/[MITgcm]/MITgcm/diags/src/timeaver_1fld_xyz.F
ViewVC logotype

Contents of /MITgcm/diags/src/timeaver_1fld_xyz.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Mon May 24 15:15:10 1999 UTC (25 years ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint23
Changes since 1.3: +1 -0 lines
Added IMPLICIT NONE.

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

  ViewVC Help
Powered by ViewVC 1.1.22