8 common/chainc/ xc(3,ncmax),uc(3,ncmax),bodyc(ncmax),ich,
28 2 a1 = x(1,ich) - x(1,j)
29 a2 = x(2,ich) - x(2,j)
30 a3 = x(3,ich) - x(3,j)
31 rij2 = a1*a1 + a2*a2 + a3*a3
32 dp = dp - body(ich)*body(j)/sqrt(rij2)
39 rij2 = a1*a1 + a2*a2 + a3*a3
40 dp = dp + bodyc(k)*body(j)/sqrt(rij2)