1 SUBROUTINE orbit(I,J,SEMI,ECC,GI)
21 rij2 = rij2 + (x(k,i) - x(k,jj))**2
23 fij = (body(i) + body(jj))/rij2
25 IF (fij.GT.fmax.AND.jj.LE.n)
THEN
31 IF (jm.EQ.i) jm = i - 1
34 CALL
fpert(i,jm,nnb,pert)
44 rij2 = rij2 + (x(k,i) - x(k,j))**2
45 vij2 = vij2 + (xdot(k,i) - xdot(k,j))**2
46 rdot = rdot + (x(k,i) - x(k,j))*(xdot(k,i) - xdot(k,j))
49 a1 = 2.0/rij - vij2/(body(i) + body(j))
51 ecc2 = (1.0 - rij/semi)**2 + rdot**2/(semi*(body(i) + body(j)))