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)