Nbody6
 All Files Functions Variables
qforce.f
Go to the documentation of this file.
1  SUBROUTINE qforce(Q,F,QF)
2 *
3 *
4 * KS transpose of Q times 2F.
5 * ---------------------------
6 *
7  IMPLICIT REAL*8 (a-h,o-z)
8  REAL*8 q(4),f(3),qf(4)
9 *
10 *
11  qf(1)=2.d0*(+q(1)*f(1)+q(2)*f(2)+q(3)*f(3))
12  qf(2)=2.d0*(-q(2)*f(1)+q(1)*f(2)+q(4)*f(3))
13  qf(3)=2.d0*(-q(3)*f(1)-q(4)*f(2)+q(1)*f(3))
14  qf(4)=2.d0*(+q(4)*f(1)-q(3)*f(2)+q(2)*f(3))
15 *
16  RETURN
17  END