-
Notifications
You must be signed in to change notification settings - Fork 0
/
grdvar.h
70 lines (70 loc) · 2.95 KB
/
grdvar.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
c====================== include file "grdvar.h" ========================
c
c variables which are functions of the grid defined by "coord.h"
c
c dxt = longitudinal width of "t" grid box at the
c equator (in cm)
c dxtr = reciprocal of "dxt"
c dxt2r = reciprocal of "2*dxt"
c dxt4r = reciprocal of "4*dxt"
c dxu = longitudinal width of "u,v" grid box at the
c equator (in cm)
c dxur = reciprocal of "dxu"
c dxu2r = reciprocal of "2*dxu"
c dxu4r = reciprocal of "4*dxu"
c dxmetr = reciprocal of "(dxt(i)+dxt(i+1))"
c duw = xu(i) - xt(i)
c due = xt(i+1) - xu(i)
c dus = yu(jrow) - yt(jrow)
c dun = yt(jrow+1) - yu(jrow)
c
c dyt = latitudinal height of "t" grid box (in cm)
c dytr = reciprocal of "dyt"
c dyt2r = reciprocal of "2*dyt"
c dyt4r = reciprocal of "4*dyt"
c dyu = latitudinal height of "u,v" grid box (in cm)
c dyur = reciprocal of "dyu"
c dyu2r = reciprocal of "2*dyu"
c dyu4r = reciprocal of "4*dyu"
c
c csu = cosine of "u,v" grid point latitude
c csur = reciprocal of "csu"
c cst = cosine of "t" grid point latitude
c cstr = reciprocal of "cst"
c phi = latitude of "u,v" grid point in radians
c phit = latitude of "t" grid point in radians
c sine = sine of "u,v" grid point latitude
c tng = tan of "u,v" grid point latitude
c fcor = 2*omega*sine(j)
c
c c2dzt(k)= "2*dzt"
c dztr(k) = reciprocal of dzt ("t" cell vertical resolution)
c rho0dztr(k) = reciprocal of (rho0*dzt) ("t" cell vertical res)
c dzt2r(k)= reciprocal of "2*dzt"
c dzwr(k) = reciprocal of dzw ("w" cell vertical resolution)
c dzw2r(k)= reciprocal of "2*dzw"
c dztur(k)= upper diffusion grid factor = 1.0/(dzw(k-1)*dzt(k))
c dztlr(k)= lower diffusion grid factor = 1.0/(dzw(k)*dzt(k))
c dzwur(k)= upper diffusion grid factor = 1.0/(dzt(k)*dzw(k))
c dzwlr(k)= lower diffusion grid factor = 1.0/(dzt(k+1)*dzw(k))
c
common /grdvar/ dxt(imt), dxtr(imt), dxt2r(imt), dxu(imt)
common /grdvar/ dxur(imt), dxu2r(imt), dxu4r(imt), dxt4r(imt)
common /grdvar/ dyt(jmt), dytr(jmt), dyt2r(jmt), dyu(jmt)
common /grdvar/ dyur(jmt), dyu2r(jmt), dyu4r(jmt), dyt4r(jmt)
common /grdvar/ csu(jmt), csur(jmt), cst(jmt), cstr(jmt)
common /grdvar/ cstdytr(jmt), cstdyt2r(jmt)
common /grdvar/ rho0csudyur(jmt), csudyu2r(jmt)
common /grdvar/ cst_dytr(jmt), csu_dyur(jmt)
common /grdvar/ phi(jmt), phit(jmt), sine(jmt), tng(jmt)
common /grdvar/ fcor(jmt), c2dzt(km), dztr(km), dzt2r(km)
common /grdvar/ rho0dztr(km), dzwr(0:km), dzw2r(0:km)
common /grdvar/ dxmetr(imt), duw(imt), due(imt)
common /grdvar/ dun(jmt), dus(jmt)
#ifdef tcvmix
common /grdvar/ dzwur(km), dzwlr(km)
#endif
#if defined implicitvmix || defined isopycmix
common /grdvar/ dztur(km), dztlr(km)
#endif
c