1 |
C $Header: /u/u3/gcmpack/MITgcm/pkg/timeave/TIMEAVE_STATV.h,v 1.9 2003/10/24 05:29:36 edhill Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "TIMEAVE_OPTIONS.h" |
5 |
|
6 |
#ifdef ALLOW_TIMEAVE |
7 |
|
8 |
CBOP |
9 |
C !ROUTINE: TIMEAVE_STATV.h |
10 |
C !INTERFACE: |
11 |
C include "TIMEAVE_STATV.h" |
12 |
C !DESCRIPTION: \bw |
13 |
C *================================================================* |
14 |
C | TIMEAVE_STATV.h |
15 |
C | o Time averages of model state-variables |
16 |
C | (common block TAVE_STATEVARS) |
17 |
C *================================================================* |
18 |
C | Time average of state variables is (generally) centered on the |
19 |
C | middle of the time step (time average interval = TimeAve_half) |
20 |
C | Time average of intermediate and tandancy variables is centered |
21 |
C | on the time step (time average interval=TimeAve_full) |
22 |
C *================================================================* |
23 |
C \ev |
24 |
CEOP |
25 |
|
26 |
C TimeAve_* :: time of temporal integration (s) *** for each thread *** |
27 |
C TimeAve_half :: half time_step multiple (used for state variables) |
28 |
C TimeAve_full :: full time_step multiple (used for for intermediate var.) |
29 |
C etatave :: surface displacement (r unit, i.e. ocean:z, atmos:p) |
30 |
C uVeltave :: zonal velocity (m/s, i=1 held at western face) |
31 |
C vVeltave :: meridional velocity (m/s, j=1 held at southern face) |
32 |
C wVeltave :: vertical velocity ([r]/s, i.e.: ocean:m/s atmos:Pa/s) |
33 |
C thetatave :: potential temperature (oC, held at pressure/tracer point) |
34 |
C salttave :: salinity (ppt, held at pressure/tracer point) |
35 |
C Eta2tave :: eta * eta |
36 |
C TTtave :: theta * theta |
37 |
C UUtave :: uVel * uVel (used to compute the averaged KE) |
38 |
C VVtave :: vVel * vVel (used to compute the averaged KE) |
39 |
C UVtave :: uVel * vVel (at vorticity point, i.e. grid-corner) |
40 |
C KEtave :: Kinetic Energy |
41 |
C UTtave :: uVel * theta (* hFacW) |
42 |
C VTtave :: vVel * theta (* hFacS) |
43 |
C WTtave :: wVel * theta |
44 |
C tDiffRtave :: vertical diffusion flux of Temperature (theta) |
45 |
C uZetatave :: uVel*Relativ_Vorticity_3 (computed at v point) |
46 |
C vZetatave :: vVel*Relativ_Vorticity_3 (computed at u point) |
47 |
C phiHydtave :: Hydrostatic (ocean) pressure / (atmos) geo- Potential |
48 |
C phiHydLowtave:: Hydrostatic (ocean) pressure / (atmos) geo- Potential |
49 |
C at the fixed boundary: (ocean) bottom pressure |
50 |
C (atmos) geo- Potential |
51 |
C ConvectCountTave :: Average number of convective adjustment event |
52 |
|
53 |
COMMON /TAVE_TIME/ TimeAve_half,TimeAve_full |
54 |
_RL TimeAve_half(Nr,nSx,nSy) |
55 |
_RL TimeAve_full(Nr,nSx,nSy) |
56 |
|
57 |
COMMON /TAVE_STATEVARS/ |
58 |
& etatave,Eta2tave, |
59 |
& uVeltave,vVeltave,wVeltave, |
60 |
& thetatave,salttave, |
61 |
& TTtave,UUtave,VVtave,UVtave, |
62 |
& UTtave,VTtave,WTtave,TdiffRtave, |
63 |
& phiHydtave, |
64 |
& phiHydLowtave,phiHydLow2Tave, |
65 |
& ConvectCountTave |
66 |
c & ,KEtave |
67 |
_RL etatave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
68 |
_RL eta2Tave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
69 |
_RL uVeltave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
70 |
_RL vVeltave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
71 |
_RL wVeltave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
72 |
_RL thetatave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
73 |
_RL salttave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
74 |
_RL TTtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
75 |
_RL UUtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
76 |
_RL VVtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
77 |
_RL UVtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
78 |
c _RL KEtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
79 |
_RL UTtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
80 |
_RL VTtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
81 |
_RL WTtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
82 |
_RL TdiffRtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
83 |
#ifdef ALLOW_MOM_VECINV |
84 |
_RL uZetatave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
85 |
_RL vZetatave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
86 |
#endif |
87 |
_RL phiHydtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
88 |
_RL phiHydLowtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
89 |
_RL phiHydLow2Tave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
90 |
_RL ConvectCountTave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
91 |
|
92 |
#ifdef NONLIN_FRSURF |
93 |
C hUtave :: average zonal flow (=hFacW*uVel) (still in m/s !) |
94 |
C hVtave :: average merid.flow (=hFacS*vVel) (still in m/s !) |
95 |
C hFacCtave :: average thickness fraction of open water, Center |
96 |
C hFacWtave :: average thickness fraction of open water, West side |
97 |
C hFacStave :: average thickness fraction of open water, South side |
98 |
|
99 |
COMMON /TAVE_THICKNESS/ |
100 |
& hUtave, hVtave |
101 |
c & , hFacCtave, hFacWtave, hFacStave |
102 |
_RL hUtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
103 |
_RL hVtave (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
104 |
c _RL hFacCtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
105 |
c _RL hFacWtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
106 |
c _RL hFacStave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
107 |
#endif /* NONLIN_FRSURF */ |
108 |
|
109 |
#endif /* ALLOW_TIMEAVE */ |