13 semi = -0.5d0*body(i)/h(ipair)
14 eb = -0.5*body(i1)*body(i1+1)/semi
15 ecc2 = (1.0 - r(ipair)/semi)**2 + tdot2(ipair)**2/(body(i)*semi)
21 rap = semi*(1.0 + ecc)
25 zfac = 1.0 + abs(eb - ebh)/abs(ebh)
30 IF (semi.GT.0.0d0.AND.r(ipair).GT.semi)
THEN
31 rap = semi*(1.0 + ecc)
34 rap = max(zfac*semi,r(ipair))
37 IF (iphase.GT.0.AND.semi.GT.0.0)
THEN
38 rap = semi*(1.0 + ecc)
43 IF (body(i).GT.100.0*bodym.AND.
44 & (r(ipair).LT.0.1*semi.OR.semi.LT.0))
THEN
45 rap = min(rmin,0.1*abs(semi))
48 rcrit2 = 2.0*rap**2/body(i)
49 rcrit3 = rcrit2*rap/gmin
51 rcrit2 = rcrit2*body1*cmsep2
61 rsep2 = w1*w1 + w2*w2 + w3*w3
63 IF (rsep2.LT.rcrit2.OR.name(j).LE.0)
THEN
64 rij3 = rsep2*sqrt(rsep2)
66 IF (rij3.LT.body(j)*rcrit3)
THEN
71 rj = min(10.0*abs(semi),-body(j)/h(j-n))
72 IF (rsep2.LT.cmsep2*rj**2)
THEN
81 IF (nnb1.EQ.1.AND.iphase.GT.0.AND.nnb2.GT.1.AND.time.GT.0.0)
THEN
86 IF ((semi*su.GT.10.0.AND.it.LE.5).OR.kstar(i).EQ.-1) go to 6
94 list(2,i1) = list(2,i)
100 step(i1) = twopi*semi*sqrt(semi/body(i))
101 step(i1) = min(step(i1),step(i))
104 IF (kstar(i).EQ.-1)
THEN
105 IF (list(1,i1).GT.0)
THEN
110 step(i1) = twopi*semi*sqrt(semi/body(i))
111 step(i1) = min(step(i1),step(i))
117 20 list(1,i1) = nnb1 - 1