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)
19 upr2 = upr2 + umdot(k,im)**2
20 td2 = td2 + 2.0*um(k,im)*umdot(k,im)
23 zmb = cm(1,im) + cm(2,im)
24 hi = (2.0*upr2 - zmb)/rb
25 err = (hi - hm(im))/hi
26 zmu = cm(1,im)*cm(2,im)/zmb
27 db = zmu*(hi - hm(im))
28 IF (abs(db).GT.1.0d-08)
THEN
29 semi = -0.5*zmb/hm(im)
30 ecc2 = (1.0 - rb/semi)**2 + td2**2/(zmb*semi)
33 WRITE (16,3) ttot, nameg(im), kstarm(im), ecc, ra, hm(im), db, err
34 3
FORMAT (
' HIRECT: T NM K* E R/A H DB DH/H ',
35 & f9.3,i6,i4,f8.4,f8.4,f9.2,1p,2e10.1)
46 upr2 = upr2 + umdot(k,im)**2
52 a2 = a1**2 + 0.5d0*hm(im)*rb/upr2
55 IF (iter.EQ.2.AND.a2.LT.0.0) a2 = 0.0d0
61 c1 = sqrt(a1 + sqrt(a2))
63 c1 = sqrt(a1 - sqrt(a2))
69 ck = zmb/sqrt(-8.0d0*hm(im)*rb*upr2)
70 WRITE (6,20) im, kstarm(im), rb, hm(im), upr2, a2, ck-1.0
71 20
FORMAT (
' WARNING! HIRECT IM K* R H UPR2 A2 CK-1 ',
81 um(k,im) = c2*um(k,im)
82 umdot(k,im) = c1*umdot(k,im)
87 IF (iter.EQ.2) go to 10