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

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

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


Revision 1.9 - (hide 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 cnh 1.9 C $Header: /u/gcmpack/MITgcm/pkg/aim/aim_calc_diags.F,v 1.8 2005/04/06 18:34:59 jmc Exp $
2 jmc 1.3 C $Name: $
3 adcroft 1.2
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 jmc 1.7 IMPLICIT NONE
13 adcroft 1.2
14     C === Global variables ===
15 jmc 1.7 C-- size for MITgcm & Physics package :
16     #include "AIM_SIZE.h"
17    
18 adcroft 1.2 #include "EEPARAMS.h"
19     #include "PARAMS.h"
20 jmc 1.7
21 adcroft 1.2 #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 cnh 1.5 INTEGER I,J,I2,K
37 adcroft 1.2 _RL DDTT
38    
39 jmc 1.3 #ifdef ALLOW_TIMEAVE
40 adcroft 1.2
41     DDTT = deltaTclock
42    
43     DO J=1,sNy
44     DO I=1,sNx
45     I2 = sNx*(J-1)+I
46 jmc 1.7 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 adcroft 1.2 ENDDO
69     ENDDO
70 adcroft 1.4
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 jmc 1.7 ENDDO
75 adcroft 1.2
76    
77 jmc 1.3 #endif /* ALLOW_TIMEAVE */
78 adcroft 1.2
79     #endif /* ALLOW_AIM */
80    
81     RETURN
82     END

  ViewVC Help
Powered by ViewVC 1.1.22