9 common/chreg/ timec,tmax,rmaxc,cm(10),namec(6),nstep1,kz27,kz30
10 common/clump/ bodys(nmx,5),t0s(5),ts(5),
steps(5),rmaxs(5),
11 & names(nmx,5),isys(5)
12 common/ccoll2/ qk(nmx4),pk(nmx4),rij(nmx,nmx),
SIZE(nmx),vstar1,
13 & ecoll1,rcoll,qperi,istar(nmx),icoll,isync,ndiss1
14 common/incond/ x4(3,nmx),xdot4(3,nmx)
32 ELSE IF (im.EQ.n - 1)
THEN
36 IF (rinv(1).LT.rinv(n-1))
THEN
44 IF (im.EQ.1.OR.im.EQ.n-1)
THEN
47 IF (1.0/rinv(jm).GT.50.0*semi)
THEN
51 ELSE IF (im.EQ.2.OR.im.EQ.3)
THEN
54 IF (1.0/rinv(jm).LT.1.0/rinv(n-1)) jm = n - 1
55 IF (1.0/rinv(jm).GT.50.0*semi)
THEN
74 IF (iesc.GT.0.AND.jesc.GT.0)
THEN
76 bcm = m(iesc) + m(jesc)
80 xcm(k) = (m(iesc)*x4(k,iesc) + m(jesc)*x4(k,jesc))/bcm
81 vcm(k) = (m(iesc)*xdot4(k,iesc) +
82 & m(jesc)*xdot4(k,jesc))/bcm
84 rdot = rdot + xcm(k)*vcm(k)
88 fac = mass/(mass - bcm)
95 IF (ri.GT.resc.AND.rdot.GT.0.0)
THEN
96 IF (rdot**2.LT.2.0*mass/ri)
THEN
103 ELSE IF (iesc.GT.0.AND.jesc.EQ.0)
THEN
105 ri = sqrt(x4(1,iesc)**2 + x4(2,iesc)**2 + x4(3,iesc)**2)
106 rdot = x4(1,iesc)*xdot4(1,iesc) + x4(2,iesc)*xdot4(2,iesc)
107 & + x4(3,iesc)*xdot4(3,iesc)
108 fac = mass/(mass - m(iesc))
113 rm = min(1.0/rinv(im),ri)
116 IF (rm.GT.resc.AND.rdot.GT.0.0)
THEN
117 IF (rdot**2.LT.2.0*mass/ri)
THEN
118 er = 0.5*rdot**2 - mass/ri
120 IF (er.LT.0.0.AND.rx.LT.2.0*resc)
THEN
131 WRITE (6,40) iesc, jesc, namec(iesc), ri, rdot**2,
133 40
FORMAT (
' STABLC: IESC JESC NAM RI RD2 2*M/R ',
136 CALL
reduce(iesc,jesc,isub)