27 integer nterms,i,j,k,imin,jmin,im,jm
29 real*8 ratio(9),pneigh(3,9),pnode(3),a,xi(-1:1,-1:1),
30 & et(-1:1,-1:1),p(3),distmin,d1,
dist,xil,etl
32 intent(in) pneigh,nterms
34 intent(inout) xil,etl,pnode,
dist,ratio
40 call distattach(xi(0,0),et(0,0),pneigh,pnode,a,p,
54 if((i.eq.0).and.(j.eq.0)) cycle
61 if((xi(i,j).le.1.d0).and.
62 & (xi(i,j).ge.-1.d0).and.
63 & (et(i,j).le.1.d0).and.
64 & (et(i,j).ge.-1.d0))
then 65 call distattach(xi(i,j),et(i,j),pneigh,pnode,a,p,
86 if((imin.eq.0).and.(jmin.eq.0))
exit 101 if((i+im.lt.-1).or.(i+im.gt.1).or.
102 & (j+jm.lt.-1).or.(j+jm.gt.1))
then 109 if((xi(i,j).le.1.d0).and.
110 & (xi(i,j).ge.-1.d0).and.
111 & (et(i,j).le.1.d0).and.
112 & (et(i,j).ge.-1.d0))
then 114 & pnode,a,p,ratio,nterms)
118 if(a.lt.distmin)
then 131 call distattach(xi(0,0),et(0,0),pneigh,pnode,a,p,
141 if(xi(0,0)+et(0,0).le.0.d0)
then 142 xil=(xi(0,0)+1.d0)/2.d0
143 etl=(et(0,0)+1.d0)/2.d0
145 xil=(1.d0-et(0,0))/2.d0
146 etl=(1.d0-xi(0,0))/2.d0
148 elseif(nterms.eq.4)
then 151 elseif(nterms.eq.6)
then 152 if(xi(0,0)+et(0,0).le.0.d0)
then 153 xil=(xi(0,0)+1.d0)/2.d0
154 etl=(et(0,0)+1.d0)/2.d0
156 xil=(1.d0-et(0,0))/2.d0
157 etl=(1.d0-xi(0,0))/2.d0
159 elseif(nterms.eq.8)
then static double * dist
Definition: radflowload.c:42
subroutine distattach(xig, etg, pneigh, pnode, a, p, ratio, nterms)
Definition: distattach.f:20