8 REAL*8 a(9),f1(3),f1dot(3)
14 IF (kcase.EQ.1) jlast = ntot - 1
28 IF (list(1,i).EQ.0)
THEN
41 DO 30 jdum = ifirst,jlast
42 IF (jdum.EQ.i) go to 30
44 IF (j.GT.n.AND.j.EQ.namej)
THEN
47 IF (list(1,2*jpair-1).GT.0)
THEN
54 a(k) = x(k,j) - x(k,i)
55 a(k+3) = xdot(k,j) - xdot(k,i)
58 a(7) = 1.0/(a(1)*a(1) + a(2)*a(2) + a(3)*a(3))
59 a(8) = body(j)*a(7)*sqrt(a(7))
60 a(9) = 3.0*(a(1)*a(4) + a(2)*a(5) + a(3)*a(6))*a(7)
64 f1dot(k) = (a(k+3) - a(k)*a(9))*a(8)
68 IF (j.EQ.icomp.OR.j.EQ.jcomp)
THEN
69 IF (kcase.EQ.1) go to 30
73 IF (jdum.NE.namej)
THEN
75 fr(k,i) = fr(k,i) + f1(k)
76 d1r(k,i) = d1r(k,i) + f1dot(k)
80 fi(k,i) = fi(k,i) + f1(k)
81 d1(k,i) = d1(k,i) + f1dot(k)
98 IF (kz(13).GT.0.AND.time.GT.0.0d0)
THEN
104 IF (kz(14).GT.0)
THEN
112 f(k,i) = fi(k,i) + fr(k,i)
113 fdot(k,i) = d1(k,i) + d1r(k,i)
123 f(k,ntot) = (a1*f(k,icomp) + a2*f(k,jcomp))/body(ntot)
124 fdot(k,ntot) = (a1*fdot(k,icomp) + a2*fdot(k,jcomp))/
126 fi(k,ntot) = (a1*fi(k,icomp) + a2*fi(k,jcomp))/body(ntot)
127 d1(k,ntot) = (a1*d1(k,icomp) + a2*d1(k,jcomp))/body(ntot)
128 fr(k,ntot) = (a1*fr(k,icomp) + a2*fr(k,jcomp))/body(ntot)
129 d1r(k,ntot) = (a1*d1r(k,icomp) + a2*d1r(k,jcomp))/
144 frdot(k,i) = d1r(k,i)