/[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.31 - (hide annotations) (download)
Sat Apr 14 18:32:32 2007 UTC (17 years, 1 month ago) by dimitri
Branch: MAIN
CVS Tags: checkpoint59, checkpoint58y_post, checkpoint59a, checkpoint59b
Changes since 1.30: +7 -1 lines
File MIME type: text/plain
latitudinal dependence of Bryan and Lewis, 1979
fixed and reworked as per JM suggestions

1 dimitri 1.31 C $Header: /u/gcmpack/MITgcm/model/inc/DYNVARS.h,v 1.30 2007/04/05 22:51:48 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     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 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.16 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 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.20 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 jmc 1.26 C IVDConvCount :: Impl.Vert.Diffusion convection counter:
110     C = 0 (not convecting) or 1 (convecting)
111     COMMON /DYNVARS_DIAG/ phiHydLow, totPhiHyd, IVDConvCount
112 mlosch 1.18 _RL phiHydLow(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
113 jmc 1.20 _RL totPhiHyd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
114 jmc 1.26 _RL IVDConvCount(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
115    

  ViewVC Help
Powered by ViewVC 1.1.22