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)
11 common/slow0/ range,islow(10)
12 parameter(aursun=214.95d0)
22 IF (namem(k).EQ.name(i)) im = k
28 IF(kstar(i2).LT.10)
THEN
34 zmb = cm(1,im) + cm(2,im)
35 zmu = cm(1,im)*cm(2,im)/zmb
36 semi = -0.5*zmb/hm(im)
44 v20 = v20 + umdot(k,im)**2
45 td2 = td2 + 2.0*um(k,im)*umdot(k,im)
50 ecc2 = (1.0 - rb/semi)**2 + td2**2/(zmb*semi)
52 oorb = twopi*sqrt((m1 + m2)/(sep/aursun)**3)
53 jorb = m1*m2/(m1 + m2)*sqrt(1.d0-ecc2)*sep**2*oorb
56 CALL
grrad(m1,m2,sep,ecc0,jorb,djgr,delet)
59 IF (abs(djgr).GT.0.d0)
THEN
60 dtgr = 0.02d0*jorb/abs(djgr)
61 IF(delet.GT.tiny.AND.ecc0.GT.0.0011d0)
THEN
62 dtgr = min(dtgr,0.05d0*ecc0/delet)
64 dtgr = max(dtgr,100.d0)
68 IF (djorb.GT.0.1*jorb)
THEN
74 ecc = max(ecc0 - delet*dtgr,0.001d0)
76 dtgr = dtgr/(1.0d+06*tstar)
82 dt = min(tev(i1)-tev0(i1),tev(i2)-tev0(i2))
92 semi1 = (m1 + m2)*jorb*jorb/
93 & ((m1*m2*twopi)**2*aursun**3*(1.d0-ecc**2))
98 hm(im) = -0.5*zmb/semi1
101 decorr = zmu*(hi - hm(im))
102 emerge = emerge - decorr
103 ecoll = ecoll + decorr
104 egrav = egrav + decorr
107 c2 = sqrt(semi1/semi)
108 v2 = 0.5*(zmb + hm(im)*rb*(semi1/semi))
114 um(k,im) = c2*um(k,im)
115 umdot(k,im) = c1*umdot(k,im)
116 rb = rb + um(k,im)**2
120 IF (rb.LT.semi1)
THEN
121 rnew = semi1*(1.0 - ecc)
122 efac = (1.0 - ecc)/(1.0 - ecc0)
124 rnew = semi1*(1.0 + ecc)
125 efac = (1.0 + ecc)/(1.0 + ecc0)
128 v2 = 0.5*(zmb + hm(im)*rnew)
138 um(k,im) = c1*um(k,im)
139 umdot(k,im) = c2*umdot(k,im)
140 rb = rb + um(k,im)**2
147 ksx = max(kstar(i1),kstar(i2))
148 IF (ksx.GE.13.AND.kz(28).GT.0)
THEN
149 rcoal = 6.0*zmb/clight**2
154 WRITE (6,25) name(i1), toff+time, ecc, semi1, dtgr, rcoal
155 25
FORMAT (
' BRAKE3 NM T E A DTGR RCOAL',i8,f9.2,f8.4,1p,3e10.2)
158 IF (rb.LT.rcoal)
THEN