1 SUBROUTINE tpert(IPAIR,GA,DT)
30 xrel = x(k,j) - x(k,i)
31 vrel = xdot(k,j) - xdot(k,i)
33 rdot = rdot + xrel*vrel
43 fij = (body(i) + body(j))/rij2
53 rdot = rcrit*abs(dtin)
55 semi = -0.5*body(i)/h(ipair)
58 ecc2 = (1.0 - r(ipair)/semi)**2 + tdot2(ipair)**2/(body(i)*semi)
59 ri = semi*(1.0 + sqrt(ecc2))
62 dt = (rcrit - ri*(body(jcrit)*a1)**0.3333)/rdot
65 dtmax = sqrt(2.0d0*abs(dt)*rdot*rcrit2/(body(i) + body(jcrit)))
69 IF (jcrit.NE.jclose)
THEN
71 dr = sqrt(rjmin2) - ri*(body(jclose)*a1)**0.3333
72 dtmax = sqrt(2.0d0*abs(dr)/fmax)
77 dt = min(dt,4.0d0*step(i))