51 integer*4 :: nnod,node_expl,nnloc
54 real*8 :: xipo,yipo,zipo,x1,y1,z1,x2,y2,z2,x3,y3,z3,ux,uy,uz,vx,vy
55 real*8 :: xmax,xmin,ymax,ymin,zmin,zmax,a,b,c, den
56 real*8,
dimension(nnloc) :: xs,ys,zs
61 ux=(x1-x2)/sqrt((x1-x2)**2+(y1-y2)**2+(z1-z2)**2)
62 uy=(y1-y2)/sqrt((x1-x2)**2+(y1-y2)**2+(z1-z2)**2)
63 uz=(z1-z2)/sqrt((x1-x2)**2+(y1-y2)**2+(z1-z2)**2)
64 vx=(x3-x2)/sqrt((x3-x2)**2+(y3-y2)**2+(z3-z2)**2)
65 vy=(y3-y2)/sqrt((x3-x2)**2+(y3-y2)**2+(z3-z2)**2)
66 vz=(z3-z2)/sqrt((x3-x2)**2+(y3-y2)**2+(z3-z2)**2)
71 den = sqrt(a**2 + b**2 + c**2)
77 xmax=max(x1,x2,x3)+tol
78 xmin=min(x1,x2,x3)-tol
79 ymax=max(y1,y2,y3)+tol
80 ymin=min(y1,y2,y3)-tol
81 zmax=max(z1,z2,z3)+tol
82 zmin=min(z1,z2,z3)-tol
86 if ( dabs( a*(xs(isn)-xipo) + b*(ys(isn)-yipo) + c*(zs(isn)-zipo
then
87 if ((xs(isn).ge.xmin).and.(xs(isn).le.xmax))
then
88 if ((ys(isn).ge.ymin).and.(ys(isn).le.ymax))
then
89 if ((zs(isn).ge.zmin).and.(zs(isn).le.zmax))
then
90 node_expl = node_expl+1
subroutine get_dime_expl(xipo, yipo, zipo, x1, y1, z1, x2, y2, z2, x3, y3, z3, nnod, xs, ys, zs, node_expl, nnloc)
Computes local number of nodes where explosive source is imposed.