8 parameter(nmx=10,nmx3=3*nmx,nmx4=4*nmx,nmxm=nmx*(nmx-1)/2)
9 REAL*8 m,mass,mc,mij,mkk,ang(3),firr(3),fd(3)
10 common/chain1/ xch(nmx3),vch(nmx3),m(nmx),
11 & zz(nmx3),wc(nmx3),mc(nmx),
12 & xi(nmx3),pi(nmx3),mass,rinv(nmxm),rsum,mkk(nmx),
13 & mij(nmx,nmx),tkk(nmx),tk1(nmx),iname(nmx),nn
14 common/chainc/ xc(3,ncmax),uc(3,ncmax),bodyc(ncmax),ich,
16 common/cpert/ rgrav,gpert,ipert,npert
17 common/chreg/ timec,tmax,rmaxc,cm(10),namec(6),nstep1,kz27,kz30
18 common/clump/ bodys(ncmax,5),t0s(5),ts(5),
steps(5),rmaxs(5),
19 & names(ncmax,5),isys(5)
20 common/ccoll2/ qk(nmx4),pk(nmx4),rik(nmx,nmx),
SIZE(nmx),vstar1,
21 & ecoll1,rcoll,qperi,istar(nmx),icoll,isync,ndiss1
22 common/incond/ x4(3,nmx),xdot4(3,nmx)
24 common/slow3/ gcrit,kz26
44 xdot4(k,l) = xdot(k,j)
45 cm(k) = cm(k) + m(l)*x4(k,l)
46 cm(k+3) = cm(k+3) + m(l)*xdot4(k,l)
60 x4(k,l) = x4(k,l) - cm(k)
61 xdot4(k,l) = xdot4(k,l) - cm(k+3)
77 rlk2 = (x4(1,l) - x4(1,k))**2 + (x4(2,l) - x4(2,k))**2 +
78 & (x4(3,l) - x4(3,k))**2
79 rsum = rsum + sqrt(rlk2)
80 rinv(l) = 1.0/sqrt(rlk2)
85 IF (nch.EQ.4) rsum = 0.5*rsum
86 rsum = min(float(nch-1)*rsum/float(nch),rmin)
93 rgrav = min(rgrav,0.5*rsum)
97 IF (timec.GT.0.0d0) ich0 = ich
110 jpert(l-1) = list(l,ich)
114 IF (timec.GT.0.0d0.AND.ich.NE.ich0)
THEN
120 CALL
nbrem(ich,nch,nnb)
124 CALL
nbrem(ntot,nch,1)
134 CALL
chfirr(ich,0,x(1,ich),xdot(1,ich),firr,fd)
136 f(k,ich) = f(k,ich) + 0.5*firr(k)
137 fdot(k,ich) = fdot(k,ich) + one6*fd(k)
138 d1(k,ich) = d1(k,ich) + fd(k)
146 tmax = min(tmax,tsmin)