8 REAL*8 m,mass,mc,mij,mkk
9 parameter(nmx=10,nmx3=3*nmx,nmxm=nmx*(nmx-1)/2)
10 common/chain1/ xch(nmx3),vch(nmx3),m(nmx),
11 & zz(nmx3),wc(nmx3),mc(nmx),
12 & xj(nmx3),pi(nmx3),mass,rinv(nmxm),rsum,mkk(nmx),
13 & mij(nmx,nmx),tkk(nmx),tk1(nmx),iname(nmx),nn
14 common/chainc/ xc(3,ncmax),uc(3,ncmax),bodyc(ncmax),ich,
16 common/clump/ bodys(ncmax,5),t0s(5),ts(5),
steps(5),rmaxs(5),
17 & names(ncmax,5),isys(5)
24 time = chtime + t0s(isub)
45 rij2 = a1*a1 + a2*a2 + a3*a3
49 IF (rij2.GT.cmsep2*r(jpair)**2) go to 5
51 CALL
ksres(jpair,j1,j2,rij2)
56 4 a1 = x(1,k) - xc(1,i)
59 rij2 = a1*a1 + a2*a2 + a3*a3
60 a6 = body(k)/(rij2*sqrt(rij2))
61 acc(ik+1) = acc(ik+1) + a1*a6
62 acc(ik+2) = acc(ik+2) + a2*a6
63 acc(ik+3) = acc(ik+3) + a3*a6
71 5 a6 = body(j)/(rij2*sqrt(rij2))
72 acc(ik+1) = acc(ik+1) + a1*a6
73 acc(ik+2) = acc(ik+2) + a2*a6
74 acc(ik+3) = acc(ik+3) + a3*a6