1 SUBROUTINE fcloud(I,FREG,FDR,KCASE)
8 common/clouds/ xcl(3,mcl),xdotcl(3,mcl),bodycl(mcl),rcl2(mcl),
9 & clm(mcl),clmdot(mcl),cldot,vcl,sigma,rb2,pcl2,
10 & tcl,stepcl,ncl,newcl
11 REAL*8 freg(3),fdr(3),a(6)
21 a(k) = xcl(k,icl) - x(k,i)
22 a(k+3) = xdotcl(k,icl) - xdot(k,i)
25 rij2 = a(1)**2 + a(2)**2 + a(3)**2 + rcl2(icl)
27 a8 = bodycl(icl)/(rij2*sqrt(rij2))
28 a9 = 3.0*(a(1)*a(4) + a(2)*a(5) + a(3)*a(6))/rij2
32 freg(k) = freg(k) + a(k)*a8 + (x(k,i) - rdens(k))*a7
33 fdr(k) = fdr(k) + (a(k+3) - a(k)*a9)*a8 + xdot(k,i)*a7
41 a(k) = xcl(k,icl) - x(k,i)
42 a(k+3) = xdotcl(k,icl) - xdot(k,i)
45 rij2 = a(1)**2 + a(2)**2 + a(3)**2 + rcl2(icl)
46 a8 = bodycl(icl)/(rij2*sqrt(rij2))
47 a9 = 3.0*(a(1)*a(4) + a(2)*a(5) + a(3)*a(6))/rij2
51 fr(k,i) = fr(k,i) + a(k)*a8
52 d1r(k,i) = d1r(k,i) + (a(k+3) - a(k)*a9)*a8