1 SUBROUTINE zare(I1,I2,SP)
14 REAL*8 m1,m2,m3,m(3),am(3),a(6),xcm(3),vcm(3),x3(3,3),xdot3(3,3)
15 INTEGER ic(3,2),iname(3)
38 xcm(k) = xcm(k) + m(l)*x(k,i)
39 vcm(k) = vcm(k) + m(l)*xdot(k,i)
45 x3(k,l) = x(k,i) - xcm(k)/(m1 + m2 + m3)
46 xdot3(k,l) = xdot(k,i) - vcm(k)/(m1 + m2 + m3)
54 zk3 = zk3 + m(ia)*(xdot3(1,ia)**2 + xdot3(2,ia)**2
63 am(ia) = am(ia) + m(i)*(x3(ja,i)*xdot3(ka,i) -
64 & x3(ka,i)*xdot3(ja,i))
65 rij2 = rij2 + (x3(i,ja) - x3(i,ka))**2
67 pot3 = pot3 - m(ja)*m(ka)/sqrt(rij2)
72 c1 =
energy*(am(1)**2 + am(2)**2 + am(3)**2)
74 a(2) = 3.0d0*m3 + 2.0d0*m1
78 a(4) = - (3.0d0*m2 + m1)
79 a(5) = - (3.0d0*m2 + 2.0d0*m1)
93 50 f1 = ((a(1)*s + a(2))*s + a(3))*s + a(4) + a(5)/s + a(6)/s**2
94 fp1 = (3.0*a(1)*s + 2.0*a(2))*s + a(3) - (2.0*a(6)/s + a(5))/s**2
98 IF (abs(dx).GT.err)
THEN
101 IF (icount.LT.20) go to 50
103 70
FORMAT (
' WARNING! ZARE NO CONVERGENCE S =',f8.4)
108 fx = m1*m3 + m2*(m3/y + m1/s)
109 gx = m1*m3 + m2*(m3*y**2 + m1*s**2)
110 ccrit = -0.5d0*fx**2*gx/(m1 + m2 + m3)