/[MITgcm]/MITgcm/pkg/aim/aim_calc_diags.F
ViewVC logotype

Contents of /MITgcm/pkg/aim/aim_calc_diags.F

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


Revision 1.9 - (show annotations) (download)
Mon Aug 1 19:34:56 2005 UTC (18 years, 9 months ago) by cnh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Emptying aim/ since aim_v23 is now "the one" for all experiements.

1 C $Header: /u/gcmpack/MITgcm/pkg/aim/aim_calc_diags.F,v 1.8 2005/04/06 18:34:59 jmc Exp $
2 C $Name: $
3
4 #include "AIM_OPTIONS.h"
5
6 CStartOfInterFace
7 SUBROUTINE AIM_CALC_DIAGS( bi, bj, myTime, myThid )
8 C /==========================================================\
9 C | SUBROUTINE AIM_CALC_DIAGS |
10 C | o Calculate AIM diagnostics |
11 C \==========================================================/
12 IMPLICIT NONE
13
14 C === Global variables ===
15 C-- size for MITgcm & Physics package :
16 #include "AIM_SIZE.h"
17
18 #include "EEPARAMS.h"
19 #include "PARAMS.h"
20
21 #include "AIM_DIAGS.h"
22 #include "com_physvar.h"
23
24 C == Routine arguments ==
25 C myTime - Current time of simulation ( s )
26 C myThid - Number of this instance of the routine
27 C bi,bj - Tile index
28 _RL myTime
29 INTEGER myThid
30 INTEGER bi, bj
31 CEndOfInterface
32
33 #ifdef ALLOW_AIM
34
35 C == Local variables ==
36 INTEGER I,J,I2,K
37 _RL DDTT
38
39 #ifdef ALLOW_TIMEAVE
40
41 DDTT = deltaTclock
42
43 DO J=1,sNy
44 DO I=1,sNx
45 I2 = sNx*(J-1)+I
46 c USTRtave(i,j,bi,bj) = USTRtave(i,j,bi,bj)
47 c & + USTR(I2,3,myThid)*DDTT
48 c VSTRtave(i,j,bi,bj) = VSTRtave(i,j,bi,bj)
49 c & + VSTR(I2,3,myThid)*DDTT
50 TSRtave(i,j,bi,bj) = TSRtave(i,j,bi,bj)
51 & + TSR(I2,myThid)*DDTT
52 OLRtave(i,j,bi,bj) = OLRtave(i,j,bi,bj)
53 & + OLR(I2,myThid)*DDTT
54 SSRtave(i,j,bi,bj) = SSRtave(i,j,bi,bj)
55 & + SSR(I2,myThid)*DDTT
56 SLRtave(i,j,bi,bj) = SLRtave(i,j,bi,bj)
57 & + SLR(I2,myThid)*DDTT
58 SHFtave(i,j,bi,bj) = SHFtave(i,j,bi,bj)
59 & + SHF(I2,3,myThid)*DDTT
60 EVAPtave(i,j,bi,bj) = EVAPtave(i,j,bi,bj)
61 & + EVAP(I2,3,myThid)*DDTT
62 PRECNVtave(i,j,bi,bj) = PRECNVtave(i,j,bi,bj)
63 & + PRECNV(I2,myThid)*DDTT
64 PRECLStave(i,j,bi,bj) = PRECLStave(i,j,bi,bj)
65 & + PRECLS(I2,myThid)*DDTT
66 CLOUDCtave(i,j,bi,bj) = CLOUDCtave(i,j,bi,bj)
67 & + CLOUDC(I2,myThid)*DDTT
68 ENDDO
69 ENDDO
70
71 C- Keep record of how much time has been integrated over
72 DO K=1,Nr
73 AIM_TimeAve(k,bi,bj)=AIM_TimeAve(k,bi,bj)+DDTT
74 ENDDO
75
76
77 #endif /* ALLOW_TIMEAVE */
78
79 #endif /* ALLOW_AIM */
80
81 RETURN
82 END

  ViewVC Help
Powered by ViewVC 1.1.22