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

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

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


Revision 1.32 - (hide annotations) (download)
Thu May 31 16:28:22 2007 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint59d, checkpoint59c
Changes since 1.31: +22 -17 lines
File MIME type: text/plain
add array to hold ocean mixed layer depth

1 jmc 1.32 C $Header: /u/gcmpack/MITgcm/model/inc/DYNVARS.h,v 1.31 2007/04/14 18:32:32 dimitri Exp $
2 jmc 1.16 C $Name: $
3 edhill 1.22
4 cnh 1.17 CBOP
5     C !ROUTINE: DYNVARS.h
6     C !INTERFACE:
7     C include "DYNVARS.h"
8     C !DESCRIPTION:
9     C \bv
10     C *==========================================================*
11 jmc 1.32 C | DYNVARS.h
12     C | o Dynamical model variables (common block DYNVARS_R)
13 cnh 1.17 C *==========================================================*
14 jmc 1.32 C | The value and two levels of time tendency are held for
15     C | each prognostic variable.
16 cnh 1.17 C *==========================================================*
17     C \ev
18     CEOP
19 cnh 1.1 C
20 jmc 1.12 C etaN - free-surface r-anomaly (r unit) at current time level
21 cnh 1.1 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 jmc 1.27 C gX, gxNm1 - Time tendencies at current and previous time levels.
26 jmc 1.32 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 jmc 1.16 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 adcroft 1.9
33 jmc 1.27 #ifdef ALLOW_ADAMSBASHFORTH_3
34 adcroft 1.13 COMMON /DYNVARS_R/
35 heimbach 1.29 & etaN,
36 adcroft 1.13 & uVel,vVel,wVel,theta,salt,
37 jmc 1.27 & gU, gV, gT, gS,
38     & guNm, gvNm, gtNm, gsNm
39     #else /* ALLOW_ADAMSBASHFORTH_3 */
40     COMMON /DYNVARS_R/
41 heimbach 1.29 & etaN,
42 jmc 1.27 & uVel,vVel,wVel,theta,salt,
43     & gU, gV, gT, gS,
44     & guNm1,gvNm1,gtNm1,gsNm1
45     #endif /* ALLOW_ADAMSBASHFORTH_3 */
46 adcroft 1.13 _RL etaN (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
47 cnh 1.5 _RL uVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
48     _RL vVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
49 adcroft 1.10 _RL wVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
50 cnh 1.5 _RL theta(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
51     _RL salt (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
52 jmc 1.27 _RL gU(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
53     _RL gV(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
54     _RL gT(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
55     _RL gS(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
56     #ifdef ALLOW_ADAMSBASHFORTH_3
57     _RL guNm(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,2)
58     _RL gvNm(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,2)
59     _RL gtNm(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,2)
60     _RL gsNm(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,2)
61     #else /* ALLOW_ADAMSBASHFORTH_3 */
62 cnh 1.5 _RL guNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
63     _RL gvNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
64     _RL gtNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
65     _RL gsNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
66 jmc 1.27 #endif /* ALLOW_ADAMSBASHFORTH_3 */
67 heimbach 1.15
68 heimbach 1.29 COMMON /DYNVARS_R_2/
69     & etaH
70     _RL etaH (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
71    
72 heimbach 1.19 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 dimitri 1.30 #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 heimbach 1.15 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 heimbach 1.19 #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_BOTTOMDRAG_CONTROL))
90     COMMON /DYNVARS_BOTTOMDRAG/
91     & bottomdragfld
92     _RL bottomdragfld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
93     #endif
94     cph
95     cph)
96 mlosch 1.18
97 dimitri 1.31 #ifdef ALLOW_BL79_LAT_VARY
98     C BL79LatArray :: is used for latitudinal dependence of
99     C BryanLewis79 vertical diffusivity
100     _RL BL79LatArray (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
101     #endif
102    
103 jmc 1.32 C diagnostic variables:
104     C phiHydLow :: Phi-Hydrostatic at r-lower boundary
105     C (bottom in z-coordinates, top in p-coordinates)
106     C totPhiHyd :: total hydrostatic Potential (anomaly, for now),
107     C at cell center level ; includes surface contribution.
108     C (for diagnostic + used in Z-coord with EOS_funct_P)
109     C hMixLayer :: Mixed layer depth [m]
110     C (for diagnostic + used GMRedi "fm07")
111 jmc 1.26 C IVDConvCount :: Impl.Vert.Diffusion convection counter:
112 jmc 1.32 C = 0 (not convecting) or 1 (convecting)
113     COMMON /DYNVARS_DIAG/
114     & phiHydLow, totPhiHyd,
115     & hMixLayer, IVDConvCount
116 mlosch 1.18 _RL phiHydLow(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
117 jmc 1.20 _RL totPhiHyd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
118 jmc 1.32 _RL hMixLayer(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
119 jmc 1.26 _RL IVDConvCount(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
120 jmc 1.32

  ViewVC Help
Powered by ViewVC 1.1.22