1 SUBROUTINE fpcorr(I,NBLOSS,NBGAIN,XI,XIDOT)
8 REAL*8 xi(3),xidot(3),save1(3),save2(3),save3(3),
9 & a(12),f2dot(3),f3dot(4)
13 nbsum = nbloss + nbgain
14 IF (nbsum.EQ.0) go to 100
27 jlist(nbloss+l) = jlist(nnb0+l)
43 a(k+3) = xdot(k,j) - xidot(k)
44 a(k+6) = 2.0*(f(k,jcm) - f(k,i))
45 a(k+9) = 6.0*(fdot(k,jcm) - fdot(k,i))
57 a(k+3) = (fdot(k,j)*s3 + 2.0*f(k,j))*s + x0dot(k,j) -
59 a(k+6) = 2.0*(fdot(k,j)*s3 + f(k,j) - f(k,i))
60 a(k+9) = 6.0*(fdot(k,j) - fdot(k,i))
64 a13 = 1.0/(a(1)*a(1) + a(2)*a(2) + a(3)*a(3))
65 a14 = body(j)*a13*sqrt(a13)
66 a15 = (a(1)*a(4) + a(2)*a(5) + a(3)*a(6))*a13
71 a20 = (a(4)*a(4) + a(5)*a(5) + a(6)*a(6) + a(1)*a(7) + a(2)*a(8)
72 & + a(3)*a(9))*a13 + a16
75 a22 = (9.0*(a(4)*a(7) + a(5)*a(8) + a(6)*a(9)) + 3.0*(a(1)*a(10)
76 & + a(2)*a(11) + a(3)*a(12)))*a13 + a17*(a20 - 4.0*a16)
79 f1dotk = a(k+3) - a17*a(k)
80 f2dot(k) = (a(k+6) - a18*f1dotk - a20*a(k))*a14
81 f3dot(k) = (a(k+9) - a21*f1dotk - a22*a(k))*a14 - a19*f2dot(k)
100 IF (l.LE.nbloss)
THEN
111 save2(k) = save2(k) + f2dot(k)
112 save3(k) = save3(k) + f3dot(k)
116 IF (l.LE.nbsum) go to 80
124 d2(k,i) = d2(k,i) + save2(k)
125 d3(k,i) = d3(k,i) + save3(k)
127 d2r(k,i) = d2r(k,i) - save2(k)
128 d3r(k,i) = d3r(k,i) - save3(k)