/[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.29 - (hide annotations) (download)
Thu Nov 24 03:44:50 2005 UTC (18 years, 6 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58b_post, checkpoint57y_post, checkpoint58, checkpoint58f_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint58t_post, checkpoint58m_post, checkpoint58w_post, checkpoint57y_pre, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint58r_post, checkpoint58n_post, checkpoint58k_post, checkpoint58v_post, checkpoint58l_post, checkpoint58g_post, checkpoint58x_post, checkpoint58h_post, checkpoint58j_post, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post, checkpoint58u_post, checkpoint58s_post
Changes since 1.28: +7 -4 lines
File MIME type: text/plain
Simplify "by-hand" access to common blocks addynvars_r, g_dynvars_r

1 heimbach 1.29 C $Header: /u/gcmpack/MITgcm/model/inc/DYNVARS.h,v 1.28 2005/11/08 01:57:38 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 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 heimbach 1.15 #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_DIFFKR_CONTROL))
77     COMMON /DYNVARS_DIFFKR/
78     & diffKr
79     _RL diffKr (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
80     #endif
81     #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_KAPGM_CONTROL))
82     COMMON /DYNVARS_KAPGM/
83     & kapgm
84     _RL kapgm (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
85     #endif
86 heimbach 1.19 #if (defined (ALLOW_AUTODIFF_TAMC) && defined (ALLOW_BOTTOMDRAG_CONTROL))
87     COMMON /DYNVARS_BOTTOMDRAG/
88     & bottomdragfld
89     _RL bottomdragfld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
90     #endif
91     cph
92     cph)
93 mlosch 1.18
94 jmc 1.20 C diagnostic variables:
95     C phiHydLow :: Phi-Hydrostatic at r-lower boundary
96     C (bottom in z-coordinates, top in p-coordinates)
97     C totPhiHyd :: total hydrostatic Potential (anomaly, for now),
98     C at cell center level ; includes surface contribution.
99     C (for diagnostic + used in Z-coord with EOS_funct_P)
100 jmc 1.26 C IVDConvCount :: Impl.Vert.Diffusion convection counter:
101     C = 0 (not convecting) or 1 (convecting)
102     COMMON /DYNVARS_DIAG/ phiHydLow, totPhiHyd, IVDConvCount
103 mlosch 1.18 _RL phiHydLow(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
104 jmc 1.20 _RL totPhiHyd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
105 jmc 1.26 _RL IVDConvCount(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
106    

  ViewVC Help
Powered by ViewVC 1.1.22