if (( N mod 2) = 0 ) then ! final one way acceleration if N even
|
end if |
! combine accelerations for final result - circulating particle in i'th |
! position corresponds to fixed particle (i-(N-1)/2) |
Grav = A + cshift (Ac, dim=2, shift = (N-1)/2) |
end function Grav |