19 cmr(k) = cmr(k) + body(i)*x(k,i)
20 cmrdot(k) = cmrdot(k) + body(i)*xdot(k,i)
26 cmrdot(k) = cmrdot(k)/zmass
41 x(k,i) = x(k,i) - cmr(k)
42 xdot(k,i) = xdot(k,i) - cmrdot(k)
44 errx = errx - tidal(k)*body(i)*(x(k,i)**2 - xi2)
45 errv = errv + body(i)*(xdot(k,i)**2 - vi2)
50 be(3) = be(3) + 0.5*(errx + errv)
51 e(11) = e(11) - 0.5*(errx + errv)
55 rdens(k) = rdens(k) - cmr(k)
59 IF (kz(14).GT.0.AND.kz(14).LE.2)
THEN
62 IF (body(i).EQ.0.0d0) go to 60
65 dd = tidal(k)*cmrdot(k)
66 fr(k,i) = fr(k,i) - df
67 f(k,i) = f(k,i) - 0.5*df
68 d1r(k,i) = d1r(k,i) - dd
69 frdot(k,i) = frdot(k,i) - dd
70 fdot(k,i) = fdot(k,i) - one6*dd
72 fi(1,i) = fi(1,i) - tidal(4)*cmrdot(2)
74 fi(2,i) = fi(2,i) + tidal(4)*cmrdot(1)
82 IF (body(i).EQ.0.0d0) go to 70
89 f2dotk = d3r(k,i)*dtr + d2r(k,i) + d3(k,i)*dt + d2(k,i)
90 f3dotk = d3r(k,i) + d3(k,i)
91 dv0 = (((f3dotk*a2 + one6*f2dotk)*dt +
92 & 3.0*fdot(k,i))*dt + 2.0*f(k,i))*dt
93 x0dot(k,i) = xdot(k,i) - dv0
94 dx0 = ((((f3dotk*a1 + f2dotk)*a2 + fdot(k,i))*dt +
95 & f(k,i))*dt + x0dot(k,i))*dt
96 x0(k,i) = x(k,i) - dx0
98 xdot(k,i) = x0dot(k,i)
103 IF (kz(14).EQ.4)
THEN
105 emdot = emdot + (phi1 - phi2)
109 DO 80 ipair = 1,npairs
110 IF (body(n+ipair).GT.0.0d0)
THEN