16 vi2 = vi2 + xdot(k,i)**2
20 IF (kw.GE.10.AND.kw.LE.15)
THEN
23 IF ((kw.EQ.10.OR.kw.EQ.11).AND.kz(25).NE.1) ikick = .false.
24 IF (kw.EQ.12.AND.kz(25).NE.2) ikick = .false.
26 IF (i.LE.n.AND.kw.NE.kstar(i).AND.ikick)
THEN
28 ELSE IF (i.GT.n.AND.ikick)
THEN
30 CALL
kick(ipair,0,kw,dm)
37 IF (i.GT.n.AND.kstar(i).LE.10)
THEN
43 IF (body(i).EQ.0.0d0) bodyi = body(i1) + body(i2)
45 x(k,i) = (body(i1)*x(k,i1) + body(i2)*x(k,i2))/bodyi
46 xdot(k,i) = (body(i1)*xdot(k,i1) + body(i2)*xdot(k,i2))/
49 x0dot(k,i) = xdot(k,i)
50 vf2 = vf2 + xdot(k,i)**2
51 dv2 = dv2 + (xdot(k,i) - a(k+6))**2
65 a(k) = x(k,i) - x(k,j)
66 a(k+3) = a(k+6) - xdot(k,j)
68 rijdot = rijdot + a(k)*a(k+3)
69 rdvdot = rdvdot + a(k)*(xdot(k,i) - a(k+6))
73 potj = potj + body(j)/rij
81 a(k+3) = (a(k+3) - a6*a(k))*a5
84 a(k+3) = a(k+3) + (xdot(k,i) - a(k+6))*a4
85 a(k+3) = a(k+3) - a7*a(k)*a4
92 IF (list(l,j).EQ.i)
THEN
94 f(k,j) = f(k,j) - 0.5*a(k)*a5
95 fi(k,j) = fi(k,j) - a(k)*a5
96 fdot(k,j) = fdot(k,j) - one6*a(k+3)
97 d1(k,j) = d1(k,j) - a(k+3)
98 fidot(k,j) = fidot(k,j) - a(k+3)
104 f(k,j) = f(k,j) - 0.5*a(k)*a5
105 fr(k,j) = fr(k,j) - a(k)*a5
106 fdot(k,j) = fdot(k,j) - one6*a(k+3)
107 d1r(k,j) = d1r(k,j) - a(k+3)
108 frdot(k,j) = frdot(k,j) - a(k+3)
113 emdot = emdot - dm*potj + 0.5*dm*vi2
116 IF (i.GT.n.AND.kstar(i).LE.10)
THEN
117 ecdot = ecdot - 0.5*body(i)*vi2*(vfac**2 - 1.0)
121 IF (kz(14).GT.0.AND.kz(14).LT.3)
THEN
122 emdot = emdot - 0.5*dm*(tidal(1)*x(1,i)**2 +
123 & tidal(3)*x(3,i)**2)
127 IF (kz(14).EQ.4.OR.kz(14).EQ.3)
THEN
130 ri2 = ri2 + x(k,i)**2
132 emdot = emdot - dm*mp/sqrt(ri2)