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

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

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


Revision 1.3 - (hide annotations) (download)
Wed Oct 28 03:11:33 1998 UTC (25 years, 7 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint17, checkpoint22, checkpoint19, checkpoint18, checkpoint16, checkpoint20, checkpoint21
Changes since 1.2: +2 -1 lines
Changes to support
 - g77 compilation under Linux
 - LR(1) form of 64-bit is D or E for constants
 - Modified adjoint of exch with adjoint variables
   acuumulated.

1 adcroft 1.1 #include "CPP_EEOPTIONS.h"
2    
3     CStartofinterface
4 cnh 1.3 SUBROUTINE TIMEAVER_1FLD_XYZ( fld, fldtave, deltaT,
5     & bi, bj, K, myThid )
6 adcroft 1.1 C /==========================================================\
7     C | SUBROUTINE TIMEAVER_1FLD_XYZ |
8     C | o Sum over time a single array |
9     C \==========================================================/
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 fld - Input Field
19     C fldtave - time averaged Field
20 cnh 1.2 _RL fld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
21     _RL fldtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
22 adcroft 1.1 REAL deltaT
23     INTEGER bi, bj, K, myThid
24    
25     CEndofinterface
26    
27     C == Local variables ==
28     C i,j,k,bi,bj - Loop counters
29     INTEGER i, j
30    
31     C DO bj = myByLo(myThid), myByHi(myThid)
32     C DO bi = myBxLo(myThid), myBxHi(myThid)
33 cnh 1.2 C DO k=1,Nr
34 adcroft 1.1 DO j=1,sNy
35     DO i=1,sNx
36     fldtave(i,j,k,bi,bj)=
37     & fldtave(i,j,k,bi,bj)+fld(i,j,k,bi,bj)*deltaT
38     ENDDO
39     ENDDO
40     C ENDDO
41     C ENDDO
42     C ENDDO
43    
44     RETURN
45     END

  ViewVC Help
Powered by ViewVC 1.1.22