21 IF (rhs(i,j,k).GT.0.0)
THEN
29 IF (i.GT.1 .AND. i.LT.ncol)
THEN
31 zp10=max(rhs(i+1,j,k),0.0)
32 zm10=max(rhs(i-1,j,k),0.0)
35 hsige=sfcht(i+1,j)+zp10
36 hsigw=sfcht(i-1,j)+zm10
42 zp10=max(rhs(i+1,j,k),0.0)
43 zm10=max(rhs(i,j,k),0.0)
44 hsige=sfcht(i+1,j)+zp10
46 ELSE IF (i.EQ.ncol)
THEN
48 zp10=max(rhs(i,j,k),0.0)
49 zm10=max(rhs(i-1,j,k),0.0)
51 hsigw=sfcht(i-1,j)+zm10
56 IF (j.GT.1 .AND. j.LT.nrow)
THEN
58 z0p1=max(rhs(i,j+1,k),0.0)
59 z0m1=max(rhs(i,j-1,k),0.0)
60 hsign=sfcht(i,j+1)+z0p1
61 hsigs=sfcht(i,j-1)+z0m1
67 z0p1=max(rhs(i,j+1,k),0.0)
68 z0m1=max(rhs(i,j,k),0.0)
69 hsign=sfcht(i,j+1)+z0p1
71 ELSE IF (j.EQ.nrow)
THEN
73 z0p1=max(rhs(i,j,k),0.0)
74 z0m1=max(rhs(i,j-1,k),0.0)
76 hsigs=sfcht(i,j-1)+z0m1
81 dhdx=(hsige-hsigw)/dgridx
82 dhdy=(hsign-hsigs)/dgridy
100 IF (i.GT.1 .AND. i.LT.ncol)
THEN
107 ELSE IF (i.EQ.1)
THEN
111 ELSE IF (i.EQ.ncol)
THEN
119 IF (j.GT.1 .AND. j.LT.nrow)
THEN
126 ELSE IF (j.EQ.1)
THEN
128 hsign=sfcht(i,j+1)+z0p1
129 hsigs=sfcht(i,j)+z0m1
130 ELSE IF (j.EQ.nrow)
THEN
132 hsign=sfcht(i,j)+z0p1
133 hsigs=sfcht(i,j-1)+z0m1
138 dhdx=(hsige-hsigw)/dgridx
139 dhdy=(hsign-hsigs)/dgridy
real function dubyou(UT, VT, I, J, K)