/[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.21 - (hide annotations) (download)
Thu Apr 17 13:12:41 2003 UTC (21 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint50c_post, checkpoint50c_pre, checkpoint51, checkpoint50d_post, checkpoint51f_post, checkpoint51d_post, checkpoint51j_post, checkpoint51b_pre, checkpoint51h_pre, checkpoint50f_post, checkpoint50f_pre, branchpoint-genmake2, checkpoint51b_post, checkpoint51c_post, checkpoint50g_post, checkpoint50h_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint50e_post, checkpoint50d_pre, checkpoint51e_post, checkpoint51f_pre, checkpoint51g_post, checkpoint50b_post, checkpoint51a_post
Branch point for: branch-genmake2
Changes since 1.20: +2 -5 lines
File MIME type: text/plain
CD-scheme: replace guCD,gvCD by local arrays

1 jmc 1.21 C $Header: /u/gcmpack/MITgcm/model/inc/DYNVARS.h,v 1.20 2003/02/18 15:12:17 jmc Exp $
2 jmc 1.16 C $Name: $
3 cnh 1.17 CBOP
4     C !ROUTINE: DYNVARS.h
5     C !INTERFACE:
6     C include "DYNVARS.h"
7     C !DESCRIPTION:
8     C \bv
9     C *==========================================================*
10     C | DYNVARS.h
11     C | o Dynamical model variables (common block DYNVARS_R)
12     C *==========================================================*
13     C | The value and two levels of time tendency are held for
14     C | each prognostic variable.
15     C *==========================================================*
16     C \ev
17     CEOP
18 cnh 1.1 C
19 jmc 1.12 C etaN - free-surface r-anomaly (r unit) at current time level
20 cnh 1.1 C uVel - zonal velocity (m/s, i=1 held at western face)
21     C vVel - meridional velocity (m/s, j=1 held at southern face)
22     C theta - potential temperature (oC, held at pressure/tracer point)
23     C salt - salinity (ppt, held at pressure/tracer point)
24 cnh 1.4 C gX, gXNM1 - Time tendencies at current and prvious time levels.
25     C uVelD - D grid zonal velocity
26     C vVelD - D grid meridional velocity
27 jmc 1.16 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)
30     C note: a) used with "exactConserv" but strictly necessary for NonLinFreeSurf
31     C b) same as etaN but not necessarely at the same time, e.g.:
32     C implicDiv2DFlow=0 => etaH=etaN ; =1 => etaH=etaNm1 ;
33 adcroft 1.9
34 adcroft 1.13 COMMON /DYNVARS_R/
35 jmc 1.16 & etaN, etaH,
36 adcroft 1.13 & uVel,vVel,wVel,theta,salt,
37 adcroft 1.8 & gu,gv,gt,gs,guNm1,gvNm1,gtNm1,gsNm1
38 adcroft 1.13 _RL etaN (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
39 jmc 1.16 _RL etaH (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
40 cnh 1.5 _RL uVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
41     _RL vVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
42 adcroft 1.10 _RL wVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
43 cnh 1.5 _RL theta(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
44     _RL salt (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
45     _RL gu(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
46     _RL gv(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
47     _RL gt(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
48     _RL gs(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
49     _RL guNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
50     _RL gvNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
51     _RL gtNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
52     _RL gsNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
53 heimbach 1.15
54 cnh 1.7 #ifdef INCLUDE_CD_CODE
55 cnh 1.4 COMMON /DYNVARS_CD/
56     & uVelD, vVelD,
57 jmc 1.16 & etaNm1,
58 jmc 1.21 & uNM1, vNM1
59 cnh 1.5 _RL uVeld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
60     _RL vVeld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
61 jmc 1.16 _RL etaNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
62 cnh 1.5 _RL uNm1 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
63     _RL vNm1 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
64 cnh 1.4 #endif
65 heimbach 1.15
66 adcroft 1.14 #ifdef ALLOW_NONHYDROSTATIC
67     COMMON /DYNVARS_NH/ phi_nh
68     _RL phi_nh(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
69     #endif /* ALLOW_NONHYDROSTATIC */
70 heimbach 1.15
71 heimbach 1.19 cph(
72     cph the following block will eventually move to a separate
73     cph header file containing requires anomaly fields of control vars.
74     cph
75 heimbach 1.15 #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_DIFFKR_CONTROL))
76     COMMON /DYNVARS_DIFFKR/
77     & diffKr
78     _RL diffKr (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
79     #endif
80     #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_KAPGM_CONTROL))
81     COMMON /DYNVARS_KAPGM/
82     & kapgm
83     _RL kapgm (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
84     #endif
85 heimbach 1.19 #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_BOTTOMDRAG_CONTROL))
86     COMMON /DYNVARS_BOTTOMDRAG/
87     & bottomdragfld
88     _RL bottomdragfld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
89     #endif
90     cph
91     cph)
92 mlosch 1.18
93 jmc 1.20 C diagnostic variables:
94     C phiHydLow :: Phi-Hydrostatic at r-lower boundary
95     C (bottom in z-coordinates, top in p-coordinates)
96     C totPhiHyd :: total hydrostatic Potential (anomaly, for now),
97     C at cell center level ; includes surface contribution.
98     C (for diagnostic + used in Z-coord with EOS_funct_P)
99     COMMON /DYNVARS_DIAG/ phiHydLow, totPhiHyd
100 mlosch 1.18 _RL phiHydLow(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
101 jmc 1.20 _RL totPhiHyd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)

  ViewVC Help
Powered by ViewVC 1.1.22