1 SUBROUTINE assess(IPAIR,IM,ECC,SEMI,ITERM)
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 REAL*8 xx(3,3),vv(3,3)
30 rv = rv + xrel(k,im)*vrel(k,im)
33 CALL
inclin(xx,vv,x(1,icm),xdot(1,icm),angle)
36 rin = sqrt(xrel(1,im)**2 + xrel(2,im)**2 + xrel(3,im)**2)
37 semi0 = -0.5*body(i1)/hm(im)
38 ecc2 = (1.0 - rin/semi0)**2 + rv**2/(body(i1)*semi0)
40 pmin = semi*(1.0 - ecc)
46 IF (eout.GT.0.80)
THEN
50 pmin = semi*(1.0 - eout)
52 nst = nstab(semi0,semi,ecc0,eout,angle,cm(1,im),
56 pcr =
stability(cm(1,im),cm(2,im),body(i2),
57 & ecc0,ecc,angle)*semi0
59 IF (pcr.LT.0.5*pmin)
THEN
63 IF (itime.GT.2000000000) itime = 0
64 IF (mod(itime,1000).EQ.0)
THEN
65 alph = 360.0*angle/twopi
66 WRITE (6,20) ecc0, ecc, alph, semi, pcrit, pcr,
68 20
FORMAT (
' ASSESS E0 E1 INC A1 PCR PC0 R0 ',
69 & 2f7.3,f7.1,1p,4e9.1)
75 pcrit =
stability(cm(1,im),cm(2,im),body(i2),
76 & ecc0,ecc,angle)*semi0
80 IF (pcrit.LT.pmin)
THEN