/[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.36 - (show annotations) (download)
Sat Feb 2 02:37:24 2008 UTC (16 years, 3 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint59o, checkpoint59n
Changes since 1.35: +6 -1 lines
File MIME type: text/plain
introduce isopycnal diffusion coefficient control.

1 C $Header: /u/gcmpack/MITgcm/model/inc/DYNVARS.h,v 1.35 2007/11/28 00:18:17 dimitri 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 C
20 C etaN - free-surface r-anomaly (r unit) at current time level
21 C uVel - zonal velocity (m/s, i=1 held at western face)
22 C vVel - meridional velocity (m/s, j=1 held at southern face)
23 C theta - potential temperature (oC, held at pressure/tracer point)
24 C salt - salinity (ppt, held at pressure/tracer point)
25 C gX, gxNm1 - Time tendencies at current and previous time levels.
26 C etaH - surface r-anomaly, advanced in time consistently
27 C with 2.D flow divergence (Exact-Conservation):
28 C etaH^n+1 = etaH^n - delta_t*Div.(H^n U^n)
29 C note: a) used with "exactConserv" but strictly necessary for NonLinFreeSurf
30 C b) same as etaN but not necessarely at the same time, e.g.:
31 C implicDiv2DFlow=0 => etaH=etaN ; =1 => etaH=etaNm1 ;
32
33 #ifdef ALLOW_ADAMSBASHFORTH_3
34 COMMON /DYNVARS_R/
35 & etaN,
36 & uVel,vVel,wVel,theta,salt,
37 & gU, gV, gT, gS,
38 & guNm, gvNm, gtNm, gsNm
39 #else /* ALLOW_ADAMSBASHFORTH_3 */
40 COMMON /DYNVARS_R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Nm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
66 #endif /* ALLOW_ADAMSBASHFORTH_3 */
67
68 COMMON /DYNVARS_R_2/
69 & etaH
70 _RL etaH (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
71
72 cph(
73 cph the following block will eventually move to a separate
74 cph header file containing requires anomaly fields of control vars.
75 cph
76 #if (defined ALLOW_3D_DIFFKR || \
77 (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_DIFFKR_CONTROL)))
78 C diffKr :: full 3D specification of Laplacian diffusion coeff.
79 C for mixing of tracers vertically ( units of r^2/s )
80 COMMON /DYNVARS_DIFFKR/
81 & diffKr
82 _RL diffKr (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
83 #endif
84 #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_KAPGM_CONTROL))
85 COMMON /DYNVARS_KAPGM/
86 & kapgm
87 _RL kapgm (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
88 #endif
89 #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_KAPREDI_CONTROL))
90 COMMON /DYNVARS_KAPREDI/
91 & kapredi
92 _RL kapredi (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
93 #endif
94 #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_BOTTOMDRAG_CONTROL))
95 COMMON /DYNVARS_BOTTOMDRAG/
96 & bottomdragfld
97 _RL bottomdragfld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
98 #endif
99 cph
100 cph)
101
102 #ifdef ALLOW_BL79_LAT_VARY
103 C BL79LatArray :: is used for latitudinal dependence of
104 C BryanLewis79 vertical diffusivity
105 COMMON /DYNVARS_BL79LatArray/ BL79LatArray
106 _RL BL79LatArray (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
107 #endif
108
109 C diagnostic variables:
110 C phiHydLow :: Phi-Hydrostatic at r-lower boundary
111 C (bottom in z-coordinates, top in p-coordinates)
112 C totPhiHyd :: total hydrostatic Potential (anomaly, for now),
113 C at cell center level ; includes surface contribution.
114 C (for diagnostic + used in Z-coord with EOS_funct_P)
115 C hMixLayer :: Mixed layer depth [m]
116 C (for diagnostic + used GMRedi "fm07")
117 C IVDConvCount :: Impl.Vert.Diffusion convection counter:
118 C = 0 (not convecting) or 1 (convecting)
119 COMMON /DYNVARS_DIAG/
120 & phiHydLow, totPhiHyd,
121 & hMixLayer, IVDConvCount
122 _RL phiHydLow(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
123 _RL totPhiHyd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
124 _RL hMixLayer(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
125 _RL IVDConvCount(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
126

  ViewVC Help
Powered by ViewVC 1.1.22