/[MITgcm]/MITgcm/model/inc/DYNVARS.h
ViewVC logotype

Contents of /MITgcm/model/inc/DYNVARS.h

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


Revision 1.45 - (show annotations) (download)
Sun Sep 15 14:29:32 2013 UTC (10 years, 8 months ago) by m_bates
Branch: MAIN
Changes since 1.44: +11 -1 lines
File MIME type: text/plain
New variables in common blocks for the eddy stress and the mean velocity.

1 C $Header: /u/gcmpack/MITgcm/model/inc/DYNVARS.h,v 1.44 2013/02/26 19:38:18 jmc Exp $
2 C $Name: $
3
4 CBOP
5 C !ROUTINE: DYNVARS.h
6 C !INTERFACE:
7 C include "DYNVARS.h"
8 C !DESCRIPTION:
9 C \bv
10 C *==========================================================*
11 C | DYNVARS.h
12 C | o Dynamical model variables (common block DYNVARS_R)
13 C *==========================================================*
14 C | The value and two levels of time tendency are held for
15 C | each prognostic variable.
16 C *==========================================================*
17 C \ev
18 CEOP
19
20 C State Variables:
21 C etaN :: free-surface r-anomaly (r unit) at current time level
22 C uVel :: zonal velocity (m/s, i=1 held at western face)
23 C vVel :: meridional velocity (m/s, j=1 held at southern face)
24 C theta :: potential temperature (oC, held at pressure/tracer point)
25 C salt :: salinity (ppt, held at pressure/tracer point)
26 C gX, gxNm1 :: Time tendencies at current and previous time levels.
27 C etaH :: surface r-anomaly, advanced in time consistently
28 C with 2.D flow divergence (Exact-Conservation):
29 C etaH^n+1 = etaH^n - delta_t*Div.(H^n U^n+1)
30 C note: a) used with "exactConserv", necessary for Non-Lin free-surf and mixed
31 C forward/backward free-surf time stepping (e.g., Crank-Nickelson)
32 C b) same as etaN but not necessarily at the same time, e.g.:
33 C implicDiv2DFlow=1 => etaH=etaN ; =0 => etaH=etaN^(n-1);
34
35 #ifdef ALLOW_ADAMSBASHFORTH_3
36 COMMON /DYNVARS_R/
37 & etaN,
38 & uVel,vVel,wVel,theta,salt,
39 & gU, gV, gT, gS,
40 & guNm, gvNm, gtNm, gsNm
41 #else /* ALLOW_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L guNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
69 _RL gvNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
70 _RL gtNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
71 _RL gsNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
72 #endif /* ALLOW_ADAMSBASHFORTH_3 */
73
74 COMMON /DYNVARS_R_2/
75 & etaH
76 _RL etaH (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
77
78 #if (defined (ALLOW_3D_DIFFKR) || defined (ALLOW_DIFFKR_CONTROL))
79 C diffKr :: full 3D specification of Laplacian diffusion coeff.
80 C for mixing of tracers vertically ( units of r^2/s )
81 COMMON /DYNVARS_DIFFKR/
82 & diffKr
83 _RL diffKr (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
84 #endif
85
86 cph(
87 cph the following block will eventually move to a separate
88 cph header file containing requires anomaly fields of control vars.
89 #ifdef ALLOW_KAPGM_CONTROL
90 COMMON /DYNVARS_KAPGM/
91 & kapGM
92 _RL kapGM (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
93 #endif
94 #ifdef ALLOW_KAPREDI_CONTROL
95 COMMON /DYNVARS_KAPREDI/
96 & kapRedi
97 _RL kapRedi (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
98 #endif
99 #ifdef ALLOW_BOTTOMDRAG_CONTROL
100 COMMON /DYNVARS_BOTTOMDRAG/
101 & bottomdragFld
102 _RL bottomdragFld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
103 #endif
104 cph)
105 #ifdef ALLOW_EDDYPSI
106 COMMON /DYNVARS_EDDYPSI/ tauxEddy,tauyEddy
107
108 _RL tauxEddy(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
109 _RL tauyEddy(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
110 #endif
111
112 #ifdef ALLOW_BL79_LAT_VARY
113 C BL79LatArray :: is used for latitudinal dependence of
114 C BryanLewis79 vertical diffusivity
115 COMMON /DYNVARS_BL79LatArray/ BL79LatArray
116 _RL BL79LatArray (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
117 #endif
118
119 C Diagnostic Variables:
120 C phiHydLow :: Phi-Hydrostatic at r-lower boundary
121 C (bottom in z-coordinates, top in p-coordinates)
122 C totPhiHyd :: total hydrostatic Potential (anomaly, for now),
123 C at cell center level ; includes surface contribution.
124 C (for diagnostic + used in Z-coord with EOS_funct_P)
125 C rhoInSitu :: In-Situ density anomaly [kg/m^3] at cell center level.
126 C hMixLayer :: Mixed layer depth [m]
127 C (for diagnostic + used GMRedi "fm07")
128 C IVDConvCount :: Impl.Vert.Diffusion convection counter:
129 C = 0 (not convecting) or 1 (convecting)
130 COMMON /DYNVARS_DIAG/
131 & phiHydLow, totPhiHyd,
132 & rhoInSitu,
133 & hMixLayer, IVDConvCount
134 _RL phiHydLow(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
135 _RL totPhiHyd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
136 _RL rhoInSitu(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
137 _RL hMixLayer(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
138 _RL IVDConvCount(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
139

  ViewVC Help
Powered by ViewVC 1.1.22