8 common/clump/ bodys(ncmax,5),t0s(5),ts(5),
steps(5),rmaxs(5),
9 & names(ncmax,5),isys(5)
37 1
IF (npairs.GT.0)
THEN
39 IF (tblist.LE.tblock.OR.npairs.NE.nbprev)
THEN
40 IF (dtb.EQ.0.0d0.OR.dtb.GT.1.0d+06)
THEN
41 dtb = max(dtmin,tblock - tprev)
43 2 tblist = tprev + dtb
44 tblist = max(tblock,tblist)
48 IF (t0(j1) + step(j1).LE.tblist)
THEN
51 tslist(nntb) = t0(j1) + step(j1)
60 nbtry = 2*sqrt(float(npairs))
61 IF (nntb.GT.nbtry) dtb = 0.75*dtb
62 IF (nntb.LT.nbtry) dtb = 1.25*dtb
65 CALL
sort1(nntb,tslist,kblist)
78 time = t0(i1) + step(i1)
81 IF (time.LE.tblock)
THEN
85 IF (li.LT.nntb.AND.iphase.EQ.0)
THEN
88 tx = t0(jx) + step(jx)
89 IF (ti.LT.tx.AND.ti.LE.tblock)
THEN
96 IF (time + step(i1).LT.tblist)
THEN
99 IF (nntb.GE.kmax-5)
THEN
102 IF (iphase.NE.0.AND.iq.EQ.0)
THEN
111 IF (t0(i1).GE.time)
THEN
117 IF (iphase.NE.0)
THEN
118 IF (iq.EQ.0.OR.iphase.LT.0)
THEN
127 IF (iphase.GT.0)
THEN
152 IF (ts(l).LT.tsub)
THEN
158 IF (tsub.LE.tblock)
THEN
161 IF (isys(isub).EQ.1)
THEN
165 ELSE IF (isys(isub).EQ.2)
THEN
169 IF (
steps(isub).LT.0.0d0)
THEN
170 steps(isub) = 1.0d-10
175 IF (
steps(isub).LT.0.0d0)
THEN
176 steps(isub) = 1.0d-10
183 IF (isub.LT.0.OR.iphase.LT.0)
THEN
184 tprev = time - step(ntot)