2 SUBROUTINE fixwnd (IFXPT,LVL)
29 LOGICAL IFXPT(nxgrd,nygrd)
46 IF (rhs(ix,iy,lvl).LE. 0.0)
THEN
52 IF (rhs(jx,jy,lvl).LE. 0.0)
56 IF (nsubter .GE. 3)
THEN
69 IF (i .LE. numnws )
THEN
76 IF (ix.GT.0 .AND. ix.LE.ncol
83 IF (rhs(ix,iy,lvl) .GT. 0.0 .OR. lvl.EQ.1)
114 REAL DDOPU(nwsite,nzgrd),DDOPV(nwsite,nzgrd)
115 REAL DUTMP(nsites),DVTMP(nsites),XVAR(nsites),YVAR(nsites)
119 LOGICAL OKSOND(nwsite,nzgrd)
121 IF (nlvl .LE. 3)
THEN
122 WRITE (*,*)
' ONLY ',nlvl-1,
' FLOW SURFACES'
129 IF (numdop .GT. 0)
THEN
130 DO 50 jdop = 1,numdop
135 IF (zsigl(jdop,il) .GE. z0)
THEN
145 24 uu = usig(jdop,lbot(jdop))
146 vv = vsig(jdop,lbot(jdop))
147 h0 = zsigl(jdop,lbot(jdop))
148 utop = usig(jdop,nlvl)
149 vtop = vsig(jdop,nlvl)
150 ztop = zsigl(jdop,nlvl)
153 oksond(jdop,nlvl)=.true.
154 oksond(jdop,lbot(jdop))=.true.
156 IF (ll .GT. lbot(jdop))
THEN
158 CALL lgntrp(uu,h0,ztop,zz,u0,utop)
159 CALL lgntrp(vv,h0,ztop,zz,v0,vtop)
163 ddopu(jdop,ll) = usig(jdop,ll)-uu
164 ddopv(jdop,ll) = vsig(jdop,ll)-vv
165 oksond(jdop,ll)=.true.
169 IF (ll.NE.lbot(jdop)) oksond(jdop,ll)=.false.
186 ztop = rhs(ix,iy,nlvl)
190 DO 80 ll=levbot(ix,iy),nlvl-1
195 CALL lgntrp(u(ix,iy,ll),h0,ztop,zz,u0,utop)
196 CALL lgntrp(v(ix,iy,ll),h0,ztop,zz,v0,vtop)
201 DO 78 jdop = 1,numdop
203 IF (oksond(jdop,ll))
THEN
205 dutmp(n4use)=ddopu(jdop,ll)
206 dvtmp(n4use)=ddopv(jdop,ll)
207 xvar(n4use)=xdop(jdop)
208 yvar(n4use)=ydop(jdop)
220 CALL rinvmod(du,xhere,yhere,xvar,yvar,
222 CALL rinvmod(dv,xhere,yhere,xvar,yvar,
230 u(ix,iy,ll)=du+u(ix,iy,ll)
231 v(ix,iy,ll)=dv+v(ix,iy,ll)
245 IF (levbot(ix,iy).LT.nlvl)
THEN
249 utop=u(ix,iy,levbot(ix,iy)+1)
250 vtop=v(ix,iy,levbot(ix,iy)+1)
251 ztop=rhs(ix,iy,levbot(ix,iy)+1)
252 zz=rhs(ix,iy,levbot(ix,iy))
253 CALL lgntrp(uu,h0,ztop,zz,u0,utop)
254 CALL lgntrp(vv,h0,ztop,zz,v0,vtop)
255 u(ix,iy,levbot(ix,iy))=uu
256 v(ix,iy,levbot(ix,iy))=vv
265 CALL lgntrp(uu,h0,ztop,zz,u0,utop)
266 CALL lgntrp(vv,h0,ztop,zz,v0,vtop)
267 u(ix,iy,levbot(ix,iy))=uu
268 v(ix,iy,levbot(ix,iy))=vv
subroutine lgntrp(Y, X0, X1, X, Y0, Y1)
subroutine rinvmod(TRPVAL, X0, Y0, XX, YY, NOBS, VARBL)
subroutine fixwnd(IFXPT, LVL)