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)
11 REAL*8 lums(10),tscls(20),gb(10)
12 REAL*8 m0,m1,m2,lum,lum2,mc,me,k2
15 WRITE (82,1) npairs, tphys
16 1
FORMAT (
' ## BEGIN',i8,f9.1)
18 ns = n - npairs - nmerge - (nch - 1)
24 WRITE (83,1) ns, tphys
30 IF (m1.EQ.0.0.AND.i.GE.ifirst)
THEN
34 IF (nameg(k).EQ.name(i))
THEN
41 3
FORMAT (
' WARNING! HRPLOT I NCH ',i6,i4)
49 age = max(tplot,tev0(i))*tstar - epoch(i)
50 CALL
star(kw,m0,m1,tm,tn,tscls,lums,gb,zpars)
51 CALL
hrdiag(m0,age,m1,tm,tn,tscls,lums,gb,zpars,
52 & rm,lum,kw,mc,rcc,me,re,k2)
60 ri = (x(1,icm) - rdens(1))**2 + (x(2,icm) - rdens(2))**2 +
61 & (x(3,icm) - rdens(3))**2
67 IF (namem(k).EQ.name(icm))
THEN
76 age = max(tplot,tev0(j1))*tstar - epoch(j1)
77 CALL
star(kw,m0,m1,tm,tn,tscls,lums,gb,zpars)
78 CALL
hrdiag(m0,age,m1,tm,tn,tscls,lums,gb,zpars,
79 & rm,lum,kw,mc,rcc,me,re,k2)
84 IF (name(n+jpair).LT.0)
THEN
85 CALL
findj(j1,j,imerge)
87 IF (name(j).GT.nzero) go to 20
88 m1 = cm(1,imerge)*zmbar
89 m2 = cm(2,imerge)*zmbar
91 rj = sqrt(xrel(1,imerge)**2 + xrel(2,imerge)**2 +
95 age = max(tplot,tev0(j1))*tstar - epoch(j1)
97 CALL
star(kw,m0,m1,tm,tn,tscls,lums,gb,zpars)
98 CALL
hrdiag(m0,age,m1,tm,tn,tscls,lums,gb,zpars,
99 & rm,lum,kw,mc,rcc,me,re,k2)
103 age = max(tplot,tev0(j2))*tstar - epoch(j2)
104 CALL
star(kw2,m0,m2,tm,tn,tscls,lums,gb,zpars)
105 CALL
hrdiag(m0,age,m2,tm,tn,tscls,lums,gb,zpars,
106 & rm2,lum2,kw2,mc,rcc,me,re,k2)
109 IF (body(j1).GT.0.0d0)
THEN
110 bodyi = (m1 + m2)/zmbar
112 bodyi = cm(3,imerge) + cm(4,imerge)
115 ecc2 = (1.0 - rj/semi)**2
117 pb = days*semi*sqrt(abs(semi)/bodyi)
118 pb = min(pb,99999.9d0)
120 semi = log10(abs(semi*su))
125 te1 = 0.25*(zl1 - 2.0*r1) + 3.7
126 te2 = 0.25*(zl2 - 2.0*r2) + 3.7
127 WRITE (82,5) name(j1), name(j2), kw, kw2, kstar(icm),
128 & ri, ecc, pb, semi, m1, m2, zl1, zl2, r1, r2, te1, te2
129 5
FORMAT (2i6,2i3,i4,f6.1,f6.3,10f7.3)
133 IF (name(i).EQ.0.OR.body(i).EQ.0.0d0) go to 20
134 ri = (x(1,i) - rdens(1))**2 + (x(2,i) - rdens(2))**2 +
135 & (x(3,i) - rdens(3))**2
141 te = 0.25*(zl1 - 2.0*r1) + 3.7
142 WRITE (83,10) name(i), kw, ri, m1, zl1, r1, te
143 10
FORMAT (i10,i4,5f10.3)
149 30
FORMAT (
' ## END',i8)
152 tplot = tplot + dtplot