17 REAL uob(nsites),vob(nsites),xval(nsites),yval(nsites)
47 rhs(ix,jy,kz) =sigma(kz)*avthk-
48 $ (sfcht(ix,jy)-sfclow)*(1.0-slfac)
51 IF (rhs(ix,jy,kz) .LE. 0.0)
THEN
52 WRITE (*,*)
'BAD TERRAIN-FOLLOWING IN SFCTRP'
66 IF (ucomp(iob).GT.-9998.9)
THEN
68 uob(numtru)=ucomp(iob)
69 vob(numtru)=vcomp(iob)
81 CALL rinvmod(trpval,x2,y2,xval,yval,numtru,uob)
83 CALL rinvmod(trpval,x2,y2,xval,yval,numtru,vob)
89 CALL lgntrp(u(ix,iy,2),z0,z10,
90 $ rhs(ix,iy,2),zero,u(ix,iy,1))
91 CALL lgntrp(v(ix,iy,2),z0,z10,
92 $ rhs(ix,iy,2),zero,v(ix,iy,1))
108 IF (levbot(ix,iy).GT.2)
THEN
109 DO 145 l=2,levbot(ix,iy)-1
118 CALL lgntrp(u(ix,iy,levbot(ix,iy)),z0,z10,
119 $ rhs(ix,iy,levbot(ix,iy)),zero,uu)
120 CALL lgntrp(v(ix,iy,levbot(ix,iy)),z0,z10,
121 $ rhs(ix,iy,levbot(ix,iy)),zero,vv)
subroutine lgntrp(Y, X0, X1, X, Y0, Y1)
subroutine rinvmod(TRPVAL, X0, Y0, XX, YY, NOBS, VARBL)