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 (name(n+kspair).GT.0)
THEN
40 IF (name(n+kspair).LT.0.AND.name(jcomp).LT.0)
THEN
42 IF (name(jcomp).LT.name(n+kspair))
THEN
56 semi = -0.5*body(i)/h(ipair)
57 ecc2 = (1.0 - r(ipair)/semi)**2 + tdot2(ipair)**2/(body(i)*semi)
61 IF (name(jcomp).GT.nzero)
THEN
64 ri2 = ri2 + (x(k,i) - rdens(k))**2
67 eb = 0.5*body(i1)*body(i2)/semi
68 eb = eb*float(n-npairs)/zkin
70 zm = (body(i) + body(jcomp))*smu
73 IF (kz(19).GE.3.AND.kz(27).LT.3)
THEN
76 jlist(3) = 2*(jcomp - n) - 1
77 jlist(4) = jlist(3) + 1
81 which1 =
' QUINTUPLET'
82 IF (jg.GT.n) which1 =
' SEXTUPLET '
83 WRITE (6,5) which1, time+toff, zm, name(i1), name(i2),
84 & name(jcomp), ri, ecc, eb, semi,pcrit,gamma(ipair)
85 5
FORMAT (/,
' NEW',a11,
' T MT NM1 NM2 NM3 RI E0 EB0 A0 PC G0',
86 & f10.2,f6.2,3i6,2f6.2,f6.1,1p,3e10.2)
90 IF (name(jcomp).GT.0.AND.name(jcomp).LE.nzero)
THEN
92 IF (kz(19).GE.3.AND.kz(27).LT.3)
THEN
99 zm = (body(i) + body(jcomp))*smu
100 IF (jg.LE.n.AND.jcomp.LE.n)
THEN
101 WRITE (6,7) time+toff, zm, name(i1), name(i2),
102 & name(jcomp), ecc, semi, pcrit, gamma(ipair)
103 7
FORMAT (/,
' NEW QUARTET T MT NM1 NMG NM3 E0 A0 PC G0 ',
104 & f9.2,f6.2,3i6,f6.2,1p,3e10.2)
106 WRITE (6,8) time+toff, zm, name(i1), name(i2),
107 & name(jcomp), ecc, semi, pcrit, gamma(ipair)
108 8
FORMAT (/,
' NEW QUINTUP2 T MT NM1 NMG NM3 E0 A0 PC G0',
109 & f10.2,f6.2,3i6,f6.2,1p,3e10.2)
114 IF (name(jcomp).LT.0)
THEN
119 IF (kz(19).GE.3.AND.kz(27).LT.3)
THEN
128 ai = -0.5*(cm(1,im) + cm(2,im))/hm(im)
129 aj = -0.5*(cm(1,jm) + cm(2,jm))/hm(jm)
130 zm = (body(i) + body(jcomp))*smu
131 gx = max(gamma(ipair),gamma(jpair))
132 WRITE (6,10) time+toff, zm, name(i1), name(i2), name(j1),
133 & name(2*jpair), ecc, ai, aj, r(ipair), r(jpair),
135 10
FORMAT (/,
' NEW HITRIP T MT NM E0 AI AJ RI RJ PC GX ',
136 & f9.2,f6.2,4i6,f6.2,1p,6e10.2)
143 IF ((kz(18).EQ.1.OR.kz(18).EQ.3).AND.kstar(i).LE.20)
THEN
153 cm(1,imerge) = body(2*ipair-1)
154 cm(2,imerge) = body(2*ipair)
156 zmu = body(2*ipair-1)*body(2*ipair)/body(n+ipair)
162 IF (list(1,2*jpair-1).GT.0) h(jpair) = ht
164 CALL
ksres(jpair,j1,j2,0.0d0)
166 list(1,2*jpair-1) = 1
179 hm(imerge) = h(ipair)
181 um(k,imerge) = u(k,ipair)
182 umdot(k,imerge) = udot(k,ipair)
186 kstarm(imerge) = kstar(i)
189 IF (time - t0(jcomp1).GT.0.0d0)
THEN
200 CALL
nbpot(2,nnb,pot1)
204 xrel(k,imerge) = x(k,icomp) - x(k,jcomp)
205 vrel(k,imerge) = x0dot(k,icomp) - x0dot(k,jcomp)
207 x0dot(k,jcomp1) = xdot(k,jcomp1)
213 CALL
nbpot(1,nnb,pot2)
216 body(jcomp) = body(jcomp1)
220 name(jcomp) = name(jcomp1)
229 IF (jcomp1.LE.n) go to 50
232 t0(2*jpair-1) = 1.0e+06
233 list(1,2*jpair-1) = 0
236 jlist(1) = 2*jpair - 1
238 CALL
nbpot(2,nnb,pot3)
240 CALL
nbpot(1,nnb,pot4)
243 eb1 = body(2*jpair-1)*body(2*jpair)*h(jpair)/body(jcomp1)
244 emerge = emerge + eb1
247 cm(3,imerge) = body(2*jpair-1)
248 cm(4,imerge) = body(2*jpair)
249 body(2*jpair-1) = 0.0d0
250 body(2*jpair) = 0.0d0
256 CALL
nbrem(icm,1,nnb)
263 x0dot(k,jcomp1) = 0.0d0
264 xdot(k,jcomp1) = 0.0d0
266 fdot(k,jcomp1) = 0.0d0
269 d2r(k,jcomp1) = 0.0d0
270 d3r(k,jcomp1) = 0.0d0
276 x0(1,jcomp1) = 1.0e+06
277 x(1,jcomp1) = 1.0e+06
285 name(icm) = name(icm) - 3*nzero
288 namem(imerge) = name(icm)
289 nameg(imerge) = name(jcomp1)
296 dphi = (pot2 - pot1) + (pot4 - pot3)
297 emerge = emerge + zmu*hm(imerge) + dphi