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)
23 semi0 = -0.5d0*body(j)/h(ipair)
26 IF (body(i).GT.0.0d0)
THEN
27 zmu0 = body(i1)*body(i2)/body(j)
31 IF (i.LT.ifirst) jj = n + kvec(i)
34 IF (nameg(k).EQ.name(jj)) im = k
37 WRITE (6,5) name(i), name(jj), (nameg(k),k=1,nmerge)
38 5
FORMAT (
' DANGER HCORR! NMI NMJJ NMG ',12i6)
42 zm1 = cm(1,im) + cm(2,im)
43 zm2 = cm(3,im) + cm(4,im)
44 zmu0 = zm1*zm2/body(j)
48 dh = dm/semi0*(1.0 - 0.5*dm/body(j))
51 body(j) = body(j) - dm
52 IF (body(i).GT.0.0d0)
THEN
53 zmu1 = (body(i1) - dm)*body(i2)/body(j)
55 zmu1 = zm1*(zm2 - dm)/body(j)
57 emdot = emdot - zmu1*dh - (zmu1 - zmu0)*h(ipair)
59 egrav = egrav - zmu1*dh - (zmu1 - zmu0)*h(ipair)
62 IF (dh.GT.0.2*abs(h(ipair)))
THEN
63 WRITE (6,10) name(i), dh, h(ipair), r(ipair)/semi0, dm*smu
64 10
FORMAT (
' WARNING! LARGE CORRECTION NM DH H R/A DMS ',
69 h(ipair) = h(ipair) + dh