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),iflagm(mmax)
13 SAVE first,iprev,iskip
14 DATA first,iprev,iskip /.true.,0,0/
19 OPEN (unit=17,
status=
'NEW',form=
'FORMATTED',file=
'BINEV')
22 5
FORMAT (
' TPHYS NAM1 NAM2 K1 K2 KC M1 M2 R1',
23 &
' R2 RI ECC SEMI PERIOD C',/)
36 isum = kstar(i1) + kstar(i2) + kstar(i)
37 IF (isum.EQ.iprev.OR.isum.EQ.iskip) go to 20
42 IF (name(i).GT.0.AND.body(i).GT.0.0d0)
THEN
43 semi = -0.5*body(i)/h(ipair)
45 ecc2 = (1.0 - r(ipair)/semi)**2 + tdot2(ipair)**2/(bodyc*semi)
49 bodyc = cm(1,im) + cm(2,im)
50 semi = -0.5*bodyc/hm(im)
51 rj = um(1,im)**2 + um(2,im)**2 + um(3,im)**2 + um(4,im)**2
52 ecc2 = (1.0 - rj/semi)**2
56 p = days*semi*sqrt(abs(semi)/bodyc)
59 a0 = min(semi*su,9999.9d0)
61 ri2 = (x(1,i) - rdens(1))**2 + (x(2,i) - rdens(2))**2 +
62 & (x(3,i) - rdens(3))**2
63 ri = min(sqrt(ri2),99.9d0)
68 WRITE (17,10) tphys, name(i1), name(i2), kstar(i1), kstar(i2),
69 & kstar(i), m1, m2, r1, r2, ri, ecc, a0, p, iqcoll
70 10
FORMAT (f8.1,2i6,3i4,2f5.1,f7.1,f6.1,f5.1,f7.3,f8.1,f9.1,i3)