19 IF (list(k,j).EQ.i) go to 5
27 a(k) = x(k,i) - x(k,j)
28 a(k+3) = xdot(k,i) - xdot(k,j)
34 a8 = dm/(rij2*sqrt(rij2))
37 a(k+3) = (a(k+3) - a7*a(k))*a8
38 f(k,j) = f(k,j) - 0.5*a(k)*a8
39 fi(k,j) = fi(k,j) - a(k)*a8
40 fdot(k,j) = fdot(k,j) - one6*a(k+3)
41 d1(k,j) = d1(k,j) - a(k+3)
42 fidot(k,j) = fidot(k,j) - a(k+3)
52 rij2 = rij2 + (x(k,i) - x(k,j))**2
54 potj = potj + body(j)/sqrt(rij2)
58 emdot = emdot - dm*potj
61 vi2 = xdot(1,i)**2 + xdot(2,i)**2 + xdot(3,i)**2
62 emdot = emdot + 0.5*dm*vi2
65 IF (kz(14).GT.0.AND.kz(14).LT.3)
THEN
66 ecdot = ecdot - 0.5*dm*(tidal(1)*x(1,i)**2 +
71 IF (kz(14).EQ.4.OR.kz(14).EQ.3)
THEN
76 ecdot = ecdot - dm*mp/sqrt(ri2)