28 integer nterms,i,j,k,imin,jmin,im,jm
30 real*8 pneigh(3,9),pnode(3),xi(-1:1,-1:1),
31 & et(-1:1,-1:1),distmin,d1,
dist,xil,etl,xn(3)
33 intent(in) pneigh,nterms,xn,pnode
55 if((i.eq.0).and.(j.eq.0)) cycle
62 if((xi(i,j).le.1.d0).and.
63 & (xi(i,j).ge.-1.d0).and.
64 & (et(i,j).le.1.d0).and.
65 & (et(i,j).ge.-1.d0))
then 71 if(
dist.lt.distmin)
then 87 if((imin.eq.0).and.(jmin.eq.0))
exit 102 if((i+im.lt.-1).or.(i+im.gt.1).or.
103 & (j+jm.lt.-1).or.(j+jm.gt.1))
then 110 if((xi(i,j).le.1.d0).and.
111 & (xi(i,j).ge.-1.d0).and.
112 & (et(i,j).le.1.d0).and.
113 & (et(i,j).ge.-1.d0))
then 115 & pnode,
dist,nterms,xn)
119 if(
dist.lt.distmin)
then 133 if(xi(0,0)+et(0,0).le.0.d0)
then 134 xil=(xi(0,0)+1.d0)/2.d0
135 etl=(et(0,0)+1.d0)/2.d0
137 xil=(1.d0-et(0,0))/2.d0
138 etl=(1.d0-xi(0,0))/2.d0
140 elseif(nterms.eq.4)
then 143 elseif(nterms.eq.6)
then 144 if(xi(0,0)+et(0,0).le.0.d0)
then 145 xil=(xi(0,0)+1.d0)/2.d0
146 etl=(et(0,0)+1.d0)/2.d0
148 xil=(1.d0-et(0,0))/2.d0
149 etl=(1.d0-xi(0,0))/2.d0
151 elseif(nterms.eq.8)
then static double * dist
Definition: radflowload.c:42
subroutine distattachline(xig, etg, pneigh, pnode, dist, nterms, xn)
Definition: distattachline.f:21