Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Merge branch 'debug'
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 28, 2023
2 parents 67eab7a + 9b75d07 commit aefbed2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/swiftest/swiftest_kick.f90
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ module subroutine swiftest_kick_getacch_int_all_triangular_pl(npl, nplm, r, Gmas
ry = r(2, j) - r(2, i)
rz = r(3, j) - r(3, i)
rji2 = rx**2 + ry**2 + rz**2
rlim2 = (radius(i) + radius(j))**2
call swiftest_kick_getacch_int_one_pl(rji2, rx, ry, rz, Gmass(i), Gmass(j), &
ahi(1,i), ahi(2,i), ahi(3,i), ahj(1,j), ahj(2,j), ahj(3,j))
end do
Expand All @@ -252,7 +251,6 @@ module subroutine swiftest_kick_getacch_int_all_triangular_pl(npl, nplm, r, Gmas
ry = r(2,j) - r(2,i)
rz = r(3,j) - r(3,i)
rji2 = rx**2 + ry**2 + rz**2
rlim2 = (radius(i) + radius(j))**2
fac = Gmass(j) / (rji2 * sqrt(rji2))
acc(1,i) = acc(1,i) + fac * rx
acc(2,i) = acc(2,i) + fac * ry
Expand Down

0 comments on commit aefbed2

Please sign in to comment.