1 SUBROUTINE decide(IPAIR,SEMI,ECC,EMAX,EMIN,TC,TG,EDAV,IQ)
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)
18 IF(nmerge.GE.mmax-1)
THEN
25 IF (kstar(n+ipair).EQ.-2)
THEN
26 pmin = semi*(1.0 - ecc)
28 CALL
tcirc(pmin,ecc,i1,i2,icirc,tc1)
30 tc1 = min(tc1,500.0d0)
32 dt1 = 0.5*(tc1 + 0.1)/tstar
33 IF (ecc.LT.0.1.AND.max(kstar(i1),kstar(i2)).LE.1)
THEN
37 IF(list(1,i1).GT.0)
THEN
50 CALL
edot(i1,i2,jcomp,semi,ecc,eccdot)
54 rm = max(radius(i1),radius(i2))
55 pm = semi*(1.0 - ecc)/rm
65 IF (kstar(i).NE.-1.AND.tg.LT.-10.0)
THEN
68 dt1 = 0.1*(1.0 - ecc)*tg/tstar
72 ecc = min(ecc,0.99*emax)
75 pmin = semi*(1.0 - ecc)
78 CALL
tcirc(pmin,ecc,i1,i2,icirc,tc1)
80 CALL
ecirc(pmin,ecc,i1,i2,icirc,tg,tc2,ecc2,edt)
90 IF (abs(edt).GT.abs(edav).AND.tc1.LT.50.0)
THEN
92 IF (kstar(i).GE.0) iq = 1
94 IF (kstar(i).EQ.-2) go to 40
99 IF (kstar(i).EQ.-2)
THEN
104 IF (abs(tdot2(ipair)).GT.1.0d-12)
THEN
105 IF (r(ipair).GT.semi.AND.tdot2(ipair).LT.0.0)
THEN
111 ELSE IF (kstar(i).EQ.-2.AND.r(ipair).LT.semi.AND.
112 & abs(tdot2(ipair)).LT.1.0d-12)
THEN
117 CALL
deform(ipair,ecc0,ecc)
122 IF (kstar(i).EQ.-2)
THEN
124 IF (iphase.LT.0)
THEN
131 IF (list(1,i1).GT.0)
THEN
132 IF (r(ipair).LT.semi.AND.
133 & abs(tdot2(ipair)).LT.1.0d-12)
THEN
139 tdot2(ipair) = -1.0d-20
144 WRITE (75,20) name(i1), ttot, ecc0, ecc, emin, emax,
145 & eccdot, edt, tg, tc1, edav, pm
146 20
FORMAT (
' DECIDE: NM T E0 E1 EM EX ED EDT TG TC EDAV ',
147 &
'PM ', i5,f9.2,4f7.3,1p,6e9.1)
157 tmdis(nmerge+1) = min(tg1,tmdis(nmerge+1))