7 IMPLICIT REAL*8 (a-h,m,o-z)
8 common/creg/ m(4),x(12),xd(12),p(12),q(12),time4,
energy,epsr2,
9 &
xr(9),w(9),r(6),ta(6),mij(6),cm(10),rmax4,tmax,
10 & ds,
tstep,eps,nstep4,name4(4),kz15,kz27,nreg,nfn
11 common/iconf/ i1,i2,i3,i4
12 common/close/ rij(4,4),rcoll,qperi,
SIZE(4),ecoll3,ip(4)
13 common/ccoll/ qk(12),pk(12),icall,icoll,ndiss4
16 REAL*8 de(2),radius(2)
26 CALL
tides(qperi,m(k1),m(k2),radius(1),radius(2),is,de)
29 CALL
erel4(im,eb,semi)
37 ecc = 1.0 - r(im)/semi
38 peri = semi*(1.0d0 - ecc)
41 dh = -(de(1) + de(2))/mu
42 am0 = semi*(1.0d0 - ecc**2)
43 ecc2 = ecc**2 + 2.0d0*am0*dh/mb
44 IF (ecc2.GT.0.0d0)
THEN
53 peri1 = semi1*(1.0d0 - ecc1)
62 IF (ecc1.LE.0.001)
THEN
63 am = semi1*(1.0d0 - ecc1**2)
72 r(im) = r(im) + q(ks+k)**2
80 p1k = -mu*(1.0 - c2**2)*(pi(j1+k)/m(k1) - pi(j2+k)/m(k2))
81 pi(j1+k) = pi(j1+k) + p1k
82 pi(j2+k) = pi(j2+k) - p1k
91 w(k+3) = -pi(ip1+k) - pi(ip2+k)
104 p(lq1) = 2.d0*(+q(lq1)*w(l1) + q(lq2)*w(l2) + q(lq3)*w(l3))
105 p(lq2) = 2.d0*(-q(lq2)*w(l1) + q(lq1)*w(l2) + q(lq4)*w(l3))
106 p(lq3) = 2.d0*(-q(lq3)*w(l1) - q(lq4)*w(l2) + q(lq1)*w(l3))
107 p(lq4) = 2.d0*(+q(lq4)*w(l1) - q(lq3)*w(l2) + q(lq2)*w(l3))
117 ecoll3 = ecoll3 + (e0 -
energy)
124 IF (ecc.GT.0.99)
THEN
125 WRITE (6,60) name4(k1), name4(k2), semi1, ecc, ecc1, h, qperi
126 60
FORMAT (
' NEW QPMOD4 NAM AF E0 EF H QP ',
127 & 2i5,1p,e10.2,0p,2f8.3,f9.1,1p,e10.2)