7 IMPLICIT REAL*8 (a-h,m,o-z)
8 common/azreg/ time3,tmax,q(8),p(8),r1,r2,r3,
energy,m(3),x3(3,3),
9 & xdot3(3,3),cm(10),c11,c12,c19,c20,c24,c25,
10 & nstep3,name3(3),kz15,kz27
11 common/close/ rij(4,4),rcoll,qperi,
SIZE(4),ecoll3,ip(4)
12 common/azcoll/ rk(3),qk(8),pk(8),icall,icoll,ndiss3
13 REAL*8 de(2),radius(2),p1(8)
23 CALL
tides(qperi,m(im),m(3),radius(1),radius(2),is,de)
30 p1(k+1) = q(k+1)*p(k+1) - q(k+2)*p(k+2) - q(k+3)*p(k+3) +
32 p1(k+2) = q(k+2)*p(k+1) + q(k+1)*p(k+2) - q(k+4)*p(k+3) -
34 p1(k+3) = q(k+3)*p(k+1) + q(k+4)*p(k+2) + q(k+1)*p(k+3) +
39 ri = q(k+1)**2 + q(k+2)**2 + q(k+3)**2 + q(k+4)**2
40 p1(k+1) = 0.5d0*p1(k+1)/ri
41 p1(k+2) = 0.5d0*p1(k+2)/ri
42 p1(k+3) = 0.5d0*p1(k+3)/ri
54 p1(k1+k) = 2.0d0*p1(k1+k) + p1(k2+k)
58 a21 = q(1)*q(1) - q(2)*q(2) - q(3)*q(3) + q(4)*q(4)
59 & - q(5)*q(5) + q(6)*q(6) + q(7)*q(7) - q(8)*q(8)
60 a22 = q(1)*q(2) - q(3)*q(4) - q(5)*q(6) + q(7)*q(8)
61 a23 = q(1)*q(3) + q(2)*q(4) - q(5)*q(7) - q(6)*q(8)
64 r3 = sqrt(a21*a21 + a22*a22 + a23*a23)
72 mu2 = m(3-im)*mb/(m(3-im) + mb)
73 vp = 0.5d0*p2/mu2 - m(1)*m(2)/r3 - m(3-im)*m(3)/max(r1,r2)
79 peri = semi*(1.0d0 - ecc)
82 dh = -(de(1) + de(2))/mu
83 am0 = semi*(1.0d0 - ecc**2)
84 ecc2 = ecc**2 + 2.0d0*am0*dh/mb
85 IF (ecc2.GT.0.0d0)
THEN
94 peri1 = semi1*(1.0d0 - ecc1)
106 p1(k1+k) = c2**2*p1(k1+k)
107 p1(k1+k) = 0.5d0*(p1(k1+k) - p1(k2+k))
112 p(k+1) = 2.0d0*(+q(k+1)*p1(k+1) + q(k+2)*p1(k+2) +
114 p(k+2) = 2.0d0*(-q(k+2)*p1(k+1) + q(k+1)*p1(k+2) +
116 p(k+3) = 2.0d0*(-q(k+3)*p1(k+1) - q(k+4)*p1(k+2) +
118 p(k+4) = 2.0d0*(+q(k+4)*p1(k+1) - q(k+3)*p1(k+2) +
133 ecoll3 = ecoll3 + (de(1) + de(2))
140 IF (ecc.GT.0.99)
THEN
141 WRITE (6,30) name3(im), name3(3), semi1, ecc, ecc1, h, qperi
142 30
FORMAT (
' NEW QPMOD3 NAM AF E0 EF H QP ',
143 & 2i5,1p,e10.2,0p,2f8.3,f9.1,1p,e10.2)