/[MITgcm]/MITgcm/model/inc/SURFACE.h
ViewVC logotype

Annotation of /MITgcm/model/inc/SURFACE.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.20 - (hide annotations) (download)
Tue Apr 29 21:03:00 2014 UTC (10 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65o, checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64w, HEAD
Changes since 1.19: +6 -4 lines
File MIME type: text/plain
store factor rStarFacC**atm_kappa in common block (for atmosphere in p* coords)

1 jmc 1.20 C $Header: /u/gcmpack/MITgcm/model/inc/SURFACE.h,v 1.19 2011/04/27 22:14:14 jmc Exp $
2 jmc 1.6 C $Name: $
3 jmc 1.1 C
4 cnh 1.4 CBOP
5     C !ROUTINE: SURFACE.h
6     C !INTERFACE:
7     C include SURFACE.h
8     C !DESCRIPTION: \bv
9     C *==========================================================*
10 jmc 1.16 C | SURFACE.h
11     C | o Header file defining surface-related model variables
12 cnh 1.4 C *==========================================================*
13 jmc 1.16 C | Contains variables relative to the surface position
14     C | that are held fixed in linear free-surface formulation
15     C | but can vary with time with a non-linear free-surface.
16 cnh 1.4 C *==========================================================*
17     C \ev
18     CEOP
19 jmc 1.1
20 jmc 1.7 C-- COMMON /SURF_FIXED/ fixed surface arrays (Real)
21 jmc 1.18 C Bo_surf :: Buoyancy|1/rho [ocean|atmos] at surface level [=g|alpha(p_o)]
22 jmc 1.7 C recip_Bo :: 1/Bo_surf
23     C topoZ :: topographic height [m] (used mainly for atmosphere)
24 adcroft 1.10 C phi0surf :: starting point for integrating phi_Hyd
25 jmc 1.8 COMMON /SURF_FIXED/ Bo_surf, recip_Bo, topoZ, phi0surf
26 jmc 1.7 _RL Bo_surf (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
27 jmc 1.1 _RL recip_Bo(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
28 jmc 1.7 _RS topoZ (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
29 jmc 1.8 _RS phi0surf(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
30 jmc 1.1
31 jmc 1.16 C-- COMMON /SURF_CORREC/ Common block for correction of source/sink of
32 dfer 1.14 C-- Tracer due to W at the surface with Linear
33     C-- Free Surface
34     C TsurfCor :: Pot.Temp Linear-Free-Surface correction term [K.r_Unit/s]
35     C SsurfCor :: Salinity Linear-Free-Surface correction term [psu.r_Unit/s]
36     COMMON /SURF_CORREC/ TsurfCor, SsurfCor
37     _RL TsurfCor
38     _RL SsurfCor
39    
40 heimbach 1.5 #ifdef EXACT_CONSERV
41 jmc 1.12 C etaHnm1 :: surface r-anomaly, etaH, at previous time level
42 jmc 1.11 C dEtaHdt :: time derivative of total column height [r_unit/s = w unit]
43     C PmEpR :: keep the fresh water input (=-EmPmR) of the previous time step
44 jmc 1.12 COMMON /EXACT_ETA_LOCAL/ etaHnm1, dEtaHdt, PmEpR
45 jmc 1.20 _RL etaHnm1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
46     _RL dEtaHdt(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
47 jmc 1.19 _RL PmEpR (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
48 heimbach 1.5 #endif
49 jmc 1.3
50     #ifdef NONLIN_FRSURF
51 jmc 1.9 C-- COMMON /SURF_CHANGE/ transient variables used for Non-Lin Free-Surf
52 cnh 1.4 C hFac_surfC :: New thickness factor of the surface level
53 jmc 1.3 C center (Tracer point)
54 cnh 1.4 C hFac_surfW :: idem, West interface (U point)
55     C hFac_surfS :: idem, South interface (V point)
56 gforget 1.17 C hFac_surfNm1C, etc. :: prior values
57 jmc 1.3 COMMON /SURF_CHANGE/
58 gforget 1.17 & hFac_surfC, hFac_surfW, hFac_surfS,
59     & hFac_surfNm1C, hFac_surfNm1W, hFac_surfNm1S
60 jmc 1.3 _RS hFac_surfC(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
61     _RS hFac_surfW(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
62     _RS hFac_surfS(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
63 gforget 1.17 _RS hFac_surfNm1C(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
64     _RS hFac_surfNm1W(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
65     _RS hFac_surfNm1S(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
66 jmc 1.9
67 heimbach 1.13 C Local variables in common block
68 jmc 1.16 C Rmin_surf :: minimum r_value of the free surface position
69 heimbach 1.13 C that satisfy the hFacInf criteria
70     COMMON /LOCAL_CALC_SURF_DR/ Rmin_surf
71     _RL Rmin_surf(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
72    
73 jmc 1.9 C-- COMMON /RSTAR_CHANGE/ transient variables used with r* Coordinate
74     C rStarFacC :: = dr/dr* = ratio of r-thickness / r*-thickness = h^n / H
75     C rStarFacW :: same but for West face
76     C rStarFacS :: same but for South face
77 jmc 1.20 C pStarFacK :: rStarFacC**atm_kappa (for atmosphere in p* coords)
78 gforget 1.17 C rStarFacNm1C, etc. :: prior values
79 jmc 1.9 C rStarExpC :: column expansion factor = h^n+1/h^n , Centered
80     C rStarExpW :: column expansion factor = h^n+1/h^n , Western face
81     C rStarExpS :: column expansion factor = h^n+1/h^n , Southern face
82 jmc 1.16 C rStarDhCDt:: relative time derivative of h_Center = d.eta/dt / H
83 jmc 1.9 C rStarDhWDt:: relative time derivative of h_West_face (u.point)
84     C rStarDhSDt:: relative time derivative of h_South_face (v.point)
85     COMMON /RSTAR_CHANGE/
86 jmc 1.20 & rStarFacC, rStarFacW, rStarFacS, pStarFacK,
87 gforget 1.17 & rStarFacNm1C, rStarFacNm1W, rStarFacNm1S,
88 jmc 1.9 & rStarExpC, rStarExpW, rStarExpS,
89     & rStarDhCDt,rStarDhWDt,rStarDhSDt
90     _RL rStarFacC (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
91     _RL rStarFacW (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
92     _RL rStarFacS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
93 jmc 1.20 _RL pStarFacK (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
94 gforget 1.17 _RL rStarFacNm1C (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
95     _RL rStarFacNm1W (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
96     _RL rStarFacNm1S (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
97 jmc 1.9 _RL rStarExpC (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
98     _RL rStarExpW (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
99     _RL rStarExpS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
100     _RL rStarDhCDt(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
101     _RL rStarDhWDt(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
102     _RL rStarDhSDt(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
103    
104     C-- COMMON /RSTAR_FIXED/ fixed thickness ratio ( r* discretization )
105     C h0FacC :: initial (and fixed in time) hFacC factor
106     C h0FacW :: initial (and fixed in time) hFacW factor
107     C h0FacS :: initial (and fixed in time) hFacS factor
108     COMMON /RSTAR_FIXED/
109     & h0FacC, h0FacW, h0FacS
110     _RS h0FacC(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
111     _RS h0FacW(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
112     _RS h0FacS(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
113 jmc 1.6
114 jmc 1.16 C-- COMMON /SIGMA_CHANGE/ transient variables used with r* Coordinate
115     C etaHw :: surface r-anomaly (etaH) at Western edge (U location)
116     C etaHs :: surface r-anomaly (etaH) at Southern edge (V location)
117     C dEtaWdt :: time derivative of etaH at Western edge (U location)
118     C dEtaSdt :: time derivative of etaH at Southern edge (V location)
119     COMMON /SIGMA_CHANGE/
120     & etaHw, etaHs,
121     & dEtaWdt, dEtaSdt
122     _RL etaHw (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
123     _RL etaHs (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
124     _RL dEtaWdt(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
125     _RL dEtaSdt(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
126 jmc 1.3 #endif /* NONLIN_FRSURF */

  ViewVC Help
Powered by ViewVC 1.1.22