1 |
C $Header: /u/gcmpack/MITgcm/model/inc/DYNVARS.h,v 1.25 2003/10/31 20:35:32 edhill 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 prvious 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 |
COMMON /DYNVARS_R/ |
34 |
& etaN, etaH, |
35 |
& uVel,vVel,wVel,theta,salt, |
36 |
& gu,gv,gt,gs,guNm1,gvNm1,gtNm1,gsNm1 |
37 |
_RL etaN (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
38 |
_RL etaH (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
39 |
_RL uVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
40 |
_RL vVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
41 |
_RL wVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
42 |
_RL theta(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
43 |
_RL salt (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
44 |
_RL gu(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
45 |
_RL gv(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
46 |
_RL gt(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
47 |
_RL gs(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
48 |
_RL guNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
49 |
_RL gvNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
50 |
_RL gtNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
51 |
_RL gsNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
52 |
|
53 |
#ifdef ALLOW_NONHYDROSTATIC |
54 |
COMMON /DYNVARS_NH/ phi_nh |
55 |
_RL phi_nh(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
56 |
#endif /* ALLOW_NONHYDROSTATIC */ |
57 |
|
58 |
cph( |
59 |
cph the following block will eventually move to a separate |
60 |
cph header file containing requires anomaly fields of control vars. |
61 |
cph |
62 |
#if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_DIFFKR_CONTROL)) |
63 |
COMMON /DYNVARS_DIFFKR/ |
64 |
& diffKr |
65 |
_RL diffKr (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
66 |
#endif |
67 |
#if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_KAPGM_CONTROL)) |
68 |
COMMON /DYNVARS_KAPGM/ |
69 |
& kapgm |
70 |
_RL kapgm (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
71 |
#endif |
72 |
#if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_BOTTOMDRAG_CONTROL)) |
73 |
COMMON /DYNVARS_BOTTOMDRAG/ |
74 |
& bottomdragfld |
75 |
_RL bottomdragfld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
76 |
#endif |
77 |
cph |
78 |
cph) |
79 |
|
80 |
C diagnostic variables: |
81 |
C phiHydLow :: Phi-Hydrostatic at r-lower boundary |
82 |
C (bottom in z-coordinates, top in p-coordinates) |
83 |
C totPhiHyd :: total hydrostatic Potential (anomaly, for now), |
84 |
C at cell center level ; includes surface contribution. |
85 |
C (for diagnostic + used in Z-coord with EOS_funct_P) |
86 |
C IVDConvCount :: Impl.Vert.Diffusion convection counter: |
87 |
C = 0 (not convecting) or 1 (convecting) |
88 |
COMMON /DYNVARS_DIAG/ phiHydLow, totPhiHyd, IVDConvCount |
89 |
_RL phiHydLow(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
90 |
_RL totPhiHyd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
91 |
_RL IVDConvCount(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
92 |
|