1 SUBROUTINE cmfirr(I,IPAIR,XI,XIDOT,FIRR,FD)
8 REAL*8 xi(3),xidot(3),firr(3),fd(3),dx(3),dv(3),fp(6),fpd(6)
33 2
IF (k.GT.jp.AND.lp.LE.np)
THEN
47 rij2 = a1*a1 + a2*a2 + a3*a3
48 IF (rij2.GT.cmsep2*r(k-n)**2) go to 10
50 IF (list(1,kdum).EQ.0) go to 10
63 IF (list(1,kdum).GT.0)
THEN
74 dx(l) = x(l,k) - x(l,i1)
75 dv(l) = xdot(l,k) - xdot(l,i1)
77 drdv = drdv + dx(l)*dv(l)
81 dr3i = body(k)*dr2i*sqrt(dr2i)
85 fp(l) = fp(l) + dx(l)*dr3i
86 fpd(l) = fpd(l) + (dv(l) - dx(l)*drdv)*dr3i
93 dx(l) = x(l,k) - x(l,i2)
94 dv(l) = xdot(l,k) - xdot(l,i2)
96 drdv = drdv + dx(l)*dv(l)
100 dr3i = body(k)*dr2i*sqrt(dr2i)
104 fp(l+3) = fp(l+3) + dx(l)*dr3i
105 fpd(l+3) = fpd(l+3) + (dv(l) - dx(l)*drdv)*dr3i
108 IF (k.GT.kdum) go to 20
116 dx(l) = x(l,k) - xi(l)
117 dv(l) = xdot(l,k) - xidot(l)
119 drdv = drdv + dx(l)*dv(l)
123 dr3i = body(k)*dr2i*sqrt(dr2i)
127 firr(l) = firr(l) + dx(l)*dr3i
128 fd(l) = fd(l) + (dv(l) - dx(l)*drdv)*dr3i
141 firr(k) = (body(i1)*fp(k) + body(i2)*fp(k+3))*bodyin +
143 fd(k) = (body(i1)*fpd(k) + body(i2)*fpd(k+3))*bodyin +