/[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.24 - (show annotations) (download)
Thu Oct 30 12:00:41 2003 UTC (20 years, 7 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint51q_post, checkpoint51p_post
Changes since 1.23: +1 -15 lines
File MIME type: text/plain
 o updated and tested version of the cd_code package
 o almost all of the cd_code functionality has been moved into
   the package but some cleanups (read/write checkpoints) remain

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

  ViewVC Help
Powered by ViewVC 1.1.22