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

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

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


Revision 1.1 - (show annotations) (download)
Wed Jul 1 19:49:36 1998 UTC (25 years, 10 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint11, checkpoint10, checkpoint13, checkpoint12, branch-point-rdot
Branch point for: branch-rdot
The time-averaging diagnostics has been modified to include
averages of "intermediate" quantities that exist only on a tile.
We currently only time-average K13, K23 and wVel but these
should be usable as a template for other diagnostics.
We have now split off these routines into a separate module
called diags/. Use of these routines is enabled by the
CPP flag ALLOW_DIAGNOSTICS set in model/inc/CPP_OPTIONS.h

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

  ViewVC Help
Powered by ViewVC 1.1.22