1 SUBROUTINE edot(I1,I2,J,SEMI,ECC,ECCDOT)
8 REAL*8 xrel(3),vrel(3),fp(3)
14 xrel(k) = x(k,i1) - x(k,i2)
15 vrel(k) = xdot(k,i1) - xdot(k,i2)
17 ri2 = ri2 + xrel(k)**2
22 5 a1 = x(1,j) - x(1,l)
25 rij2 = a1**2 + a2**2 + a3**2
26 a4 = body(j)/(rij2*sqrt(rij2))
41 rv = rv + xrel(k)*vrel(k)
42 rf = rf + xrel(k)*fp(k)
43 vf = vf + vrel(k)*fp(k)
47 eccdot = (semi**2*(1.0 - ecc**2) - ri2)*vf + rv*rf
48 eccdot = eccdot/((body(i1) + body(i2))*semi*ecc)