7 IMPLICIT REAL*8 (a-h,m,o-z)
8 LOGICAL switch,gtype,gtype0,aux
9 common/creg/ m(4),x(12),xd(12),p(12),q(12),time4,
energy,epsr2,
10 &
xr(9),w(9),r(6),ta(6),mij(6),cm(10),rmax4,tmax,
11 & ds,
tstep,eps,nstep4,name4(4),kz15,kz27,nreg,nfn
12 common/tpr/
switch,gtype,gtype0
14 REAL*8 rc(3),vc(3),rc0(3),vc0(3)
26 IF (l.EQ.k1.OR.l.EQ.k2) go to 1
57 rc0(k) = (m(k1)*x(j1) + m(k2)*x(j2))/mb0
58 rc(k) = (m(k3)*x(j3) + m(k4)*x(j4))/mb
59 vc0(k) = (m(k1)*xd(j1) + m(k2)*xd(j2))/mb0
60 vc(k) = (m(k3)*xd(j3) + m(k4)*xd(j4))/mb
61 rb0 = rb0 + (x(j1) - x(j2))**2
62 rb = rb + (x(j3) - x(j4))**2
63 rb1 = rb1 + (rc(k) - rc0(k))**2
64 rb2 = rb2 + (rc0(k) - x(j3))**2
65 rdot = rdot + (x(j3) - x(j4))*(xd(j3) - xd(j4))
66 rdot1 = rdot1 + (rc(k) - rc0(k))*(vc(k) - vc0(k))
67 rdot2 = rdot2 + (rc0(k) - x(j3))*(vc0(k) - xd(j3))
68 vrel2 = vrel2 + (xd(j3) - xd(j4))**2
69 vrel20 = vrel20 + (xd(j1) - xd(j2))**2
70 vrel21 = vrel21 + (vc(k) - vc0(k))**2
71 vrel22 = vrel22 + (vc0(k) - xd(j3))**2
76 semi0 = 2.0/rb0 - vrel20/mb0
82 semi = 2.0d0/rb - vrel2/mb
88 semi1 = 2.0d0/rb1 - vrel21/cm(7)
90 e1 = sqrt((1.0d0 - rb1/semi1)**2 + rdot1**2/(semi1*cm(7)))
95 semi2 = 2.0d0/rb2 - vrel22/mb2
97 e2 = sqrt((1.0d0 - rb2/semi2)**2 + rdot2**2/(semi2*mb2))
100 ratio = semi1*(1.0d0 - e1)/(semi0*(1.0d0 + e0))
126 IF (rb1.GT.5.0*rb2.AND.e2.LT.1.0)
THEN
128 xfac = (1.0 + q1)*(1.0 + e2)/sqrt(1.0 - e2)
129 pcrit = 2.8*xfac**0.4*semi0
130 pmin = semi2*(1.0 - e2)
131 IF (pcrit.LT.pmin)
THEN
133 ratio = semi2*(1.0d0 - e2)/(semi0*(1.0d0 + e0))
134 WRITE (6,15) semi0, semi2, e0, e2, ratio, rb0, rb2,
136 15
FORMAT (
' STABT: A0 A2 E0 E2 RATIO R0 R2 PCR PM ',
137 & 1p,2e10.2,0p,2f7.3,f6.2,1p,4e9.1)
139 ELSE IF (rb1.GT.5.0*max(rb0,rb).AND.e1.LT.1.0.AND.
140 & min(semi0,semi).GT.0.0)
THEN
142 IF (semi.GT.semi0)
THEN
149 xfac = (1.0 + q1)*(1.0 + e1)/sqrt(1.0 - e1)
150 pcrit = 2.8*xfac**0.4*ain
151 pmin = semi1*(1.0 - e1)
152 IF (pcrit.LT.pmin)
THEN
154 WRITE (6,20) ain, semi1, e0, e1, ratio, rb0, rb1,
156 20
FORMAT (
' STABQ: AIN A1 E0 E1 RATIO R0 R1 PCR PM ',
157 & 1p,2e10.2,0p,2f7.3,f6.2,1p,4e9.1)