1 SUBROUTINE ksres(J,J1,J2,RIJ2)
8 common/slow0/ range,islow(10)
16 a3 = a2*(time - t0(j1))
17 IF (kslow(j).GT.1)
THEN
19 a3 = a3/float(islow(imod))
23 IF (rij2.GT.625.0*r(j)**2)
THEN
25 dtu = (1.0 - 0.5d0*tdot2(j)*a2*a3)*a3
26 IF (abs(dtu).GT.dtau(j)) dtu = dtau(j)
30 ui(k) = (fu(k,j)*dtu + udot(k,j))*dtu + u0(k,j)
34 a4 = 3.0d0*tdot2(j)**2*a2 - tdot3(j)
35 dtu = ((one6*a4*a3 - 0.5d0*tdot2(j))*a2*a3 + 1.0)*a3
37 IF (dtu.GT.dtau(j)) dtu = 0.8*dtau(j)
39 IF (list(1,j1).EQ.0.OR.iphase.EQ.9) dtu = 0.0
44 ui(k) = (((fudot2(k,j)*dtu1 + fudot(k,j))*dtu +
45 & fu(k,j))*dtu + udot(k,j))*dtu + u0(k,j)
50 q1 = ui(1)**2 - ui(2)**2 - ui(3)**2 + ui(4)**2
51 q2 = ui(1)*ui(2) - ui(3)*ui(4)
52 q3 = ui(1)*ui(3) + ui(2)*ui(4)
56 a2 = body(j2)/body(j3)
59 x(1,j1) = x(1,j3) + a2*q1
60 x(2,j1) = x(2,j3) + a2*q2
61 x(3,j1) = x(3,j3) + a2*q3
62 x(1,j2) = x(1,j1) - q1
63 x(2,j2) = x(2,j1) - q2
64 x(3,j2) = x(3,j1) - q3