/[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.27 - (hide annotations) (download)
Fri Apr 15 13:28:51 2005 UTC (19 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57s_post, checkpoint57g_post, checkpoint57r_post, checkpoint57i_post, checkpoint57n_post, checkpoint57l_post, checkpoint57t_post, checkpoint57v_post, checkpoint57h_pre, checkpoint57h_post, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, checkpoint57h_done, checkpoint57j_post, checkpoint57o_post, checkpoint57k_post, checkpoint57w_post
Changes since 1.26: +23 -7 lines
File MIME type: text/plain
Adams-Bashforth-3 : needs tendencies for 3 time-levels

1 jmc 1.27 C $Header: /u/gcmpack/MITgcm/model/inc/DYNVARS.h,v 1.26 2004/07/01 21:44:34 jmc 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 jmc 1.16 & etaN, etaH,
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     & etaN, etaH,
42     & 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 jmc 1.16 _RL etaH (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
48 cnh 1.5 _RL uVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
49     _RL vVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
50 adcroft 1.10 _RL wVel (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
51 cnh 1.5 _RL theta(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
52     _RL salt (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
53 jmc 1.27 _RL gU(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
54     _RL gV(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
55     _RL gT(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
56     _RL gS(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
57     #ifdef ALLOW_ADAMSBASHFORTH_3
58     _RL guNm(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,2)
59     _RL gvNm(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,2)
60     _RL gtNm(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,2)
61     _RL gsNm(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,2)
62     #else /* ALLOW_ADAMSBASHFORTH_3 */
63 cnh 1.5 _RL guNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
64     _RL gvNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
65     _RL gtNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
66     _RL gsNm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
67 jmc 1.27 #endif /* ALLOW_ADAMSBASHFORTH_3 */
68 heimbach 1.15
69 adcroft 1.14 #ifdef ALLOW_NONHYDROSTATIC
70     COMMON /DYNVARS_NH/ phi_nh
71     _RL phi_nh(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
72     #endif /* ALLOW_NONHYDROSTATIC */
73 heimbach 1.15
74 heimbach 1.19 cph(
75     cph the following block will eventually move to a separate
76     cph header file containing requires anomaly fields of control vars.
77     cph
78 heimbach 1.15 #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_DIFFKR_CONTROL))
79     COMMON /DYNVARS_DIFFKR/
80     & diffKr
81     _RL diffKr (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
82     #endif
83     #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_KAPGM_CONTROL))
84     COMMON /DYNVARS_KAPGM/
85     & kapgm
86     _RL kapgm (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
87     #endif
88 heimbach 1.19 #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_BOTTOMDRAG_CONTROL))
89     COMMON /DYNVARS_BOTTOMDRAG/
90     & bottomdragfld
91     _RL bottomdragfld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
92     #endif
93     cph
94     cph)
95 mlosch 1.18
96 jmc 1.20 C diagnostic variables:
97     C phiHydLow :: Phi-Hydrostatic at r-lower boundary
98     C (bottom in z-coordinates, top in p-coordinates)
99     C totPhiHyd :: total hydrostatic Potential (anomaly, for now),
100     C at cell center level ; includes surface contribution.
101     C (for diagnostic + used in Z-coord with EOS_funct_P)
102 jmc 1.26 C IVDConvCount :: Impl.Vert.Diffusion convection counter:
103     C = 0 (not convecting) or 1 (convecting)
104     COMMON /DYNVARS_DIAG/ phiHydLow, totPhiHyd, IVDConvCount
105 mlosch 1.18 _RL phiHydLow(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
106 jmc 1.20 _RL totPhiHyd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
107 jmc 1.26 _RL IVDConvCount(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
108    

  ViewVC Help
Powered by ViewVC 1.1.22