8 common/binary/ cm(4,mmax),xrel(3,mmax),vrel(3,mmax),
9 & hm(mmax),um(4,mmax),umdot(4,mmax),tmdis(mmax),
10 & namem(mmax),nameg(mmax),kstarm(mmax),iflag(mmax)
33 IF (nmerge.GE.mmax)
THEN
35 5
FORMAT (/,5x,
'WARNING! MERGER LIMIT EXCEEDED NMERGE =',i4)
40 IF (name(n+kspair).LT.0.OR.name(jcomp).LT.0)
THEN
47 semi2 = -0.5*body(jcomp)/h(jcomp-n)
48 IF (semi2.GT.r(kspair))
THEN
61 IF ((kz(18).EQ.1.OR.kz(18).EQ.3).AND.kstar(i).LE.20)
THEN
71 cm(1,imerge) = body(2*ipair-1)
72 cm(2,imerge) = body(2*ipair)
74 zmu = body(2*ipair-1)*body(2*ipair)/body(n+ipair)
81 IF (list(1,2*jpair-1).GT.0) h(jpair) = ht
83 CALL
ksres(jpair,j1,j2,0.0d0)
87 IF (ipair.LT.jpair)
THEN
98 IF (j.LE.2*npairs.AND.j.GT.2*ipair) j = j - 2
110 IF (time.GT.tblock)
THEN
112 hm(imerge) = h(ipair)
114 um(k,imerge) = u(k,ipair)
115 umdot(k,imerge) = udot(k,ipair)
120 kstarm(imerge) = kstar(i)
126 IF (time - t0(jcomp1).GT.0.0d0)
THEN
138 CALL
nbpot(2,nnb,pot1)
142 xrel(k,imerge) = x(k,icomp) - x(k,jcomp)
143 vrel(k,imerge) = x0dot(k,icomp) - x0dot(k,jcomp)
144 x(k,icomp) = (body(icomp)*x(k,icomp) + body(jcomp)*x(k,jcomp))
145 & /(body(icomp) + body(jcomp))
146 x0dot(k,icomp) = (body(icomp)*x0dot(k,icomp) +
147 & body(jcomp)*x0dot(k,jcomp))/
148 & (body(icomp) + body(jcomp))
150 x0dot(k,jcomp1) = xdot(k,jcomp1)
154 body(icomp) = body(icomp) + body(jcomp)
160 x0dot(k,jcomp) = 0.0d0
161 xdot(k,jcomp) = 0.0d0
163 fdot(k,jcomp) = 0.0d0
173 x0(1,jcomp) = 1.0e+06
179 IF (jcomp1.LE.n) go to 50
182 t0(2*jpair-1) = 1.0e+06
183 list(1,2*jpair-1) = 0
186 jlist(1) = 2*jpair - 1
189 CALL
nbpot(2,nnb,pot3)
191 CALL
nbpot(1,nnb,pot4)
194 eb1 = body(2*jpair-1)*body(2*jpair)*h(jpair)/body(jcomp1)
195 emerge = emerge + eb1
198 cm(3,imerge) = body(2*jpair-1)
199 cm(4,imerge) = body(2*jpair)
200 body(2*jpair-1) = 0.0d0
201 body(2*jpair) = 0.0d0
205 CALL
nbpot(1,nnb,pot2)
209 dphi = (pot2 - pot1) + (pot4 - pot3)
220 CALL
nbrem(icomp,1,nnb)
227 IF (sqrt(cmsep2)*rmax.GT.2.0*rs(icomp).OR.nnb.LE.3)
THEN
230 rsi = fac**0.3333*rs(icomp)
231 IF (rsi.GT.rs(i))
THEN
241 name(ntot) = nzero - name(ntot)
244 namem(imerge) = name(ntot)
245 nameg(imerge) = name(jcomp1)
247 IF (h(npairs).GT.0.0) nmerg = nmerg - 1
255 emerge = emerge + zmu*hm(imerge) + dphi