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

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

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


Revision 1.4 - (hide 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 adcroft 1.1 #include "CPP_EEOPTIONS.h"
2    
3     CStartofinterface
4 cnh 1.3 SUBROUTINE TIMEAVER_FINAL_XYZ( fldtave, timeave,
5     & bi, bj, K, myThid )
6 adcroft 1.1 C /==========================================================\
7     C | SUBROUTINE TIMEAVER_FINAL_XY |
8     C | o Get final average of field |
9     C \==========================================================/
10 adcroft 1.4 IMPLICIT NONE
11 adcroft 1.1
12     C == Global variables ===
13     #include "SIZE.h"
14     #include "EEPARAMS.h"
15    
16     C == Routine arguments ==
17     C myThid - Thread number for this instance of the routine.
18     C timeave - time averaged
19     C fldtave - time averaged Field
20     INTEGER bi, bj, K, myThid
21 cnh 1.2 _RL fldtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
22     REAL timeave(Nr,nSx,nSy)
23 adcroft 1.1
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 cnh 1.2 C DO k=1,Nr
33 adcroft 1.1 DO j=1,sNy
34     DO i=1,sNx
35 cnh 1.3 fldtave(i,j,k,bi,bj) = fldtave(i,j,k,bi,bj) /
36     & timeave(k,bi,bj)
37 adcroft 1.1 ENDDO
38     ENDDO
39     C ENDDO
40     C ENDDO
41     C ENDDO
42    
43     RETURN
44     END

  ViewVC Help
Powered by ViewVC 1.1.22