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

Commit

Permalink
Fixed bug in which accelerations were accidentally zeroed out for all…
Browse files Browse the repository at this point in the history
… encountering bodies
  • Loading branch information
daminton committed Aug 19, 2021
1 parent d709d55 commit b80d682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symba/symba_kick.f90
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ module subroutine symba_kick_encounter(self, system, dt, irec, sgn)
associate(i1 => ind1(good_idx(i)), i2 => ind2(good_idx(i)))
pl%vb(:,i1) = pl%vb(:,i1) + sgn * dt * pl%ah(:,i1)
pl%vb(:,i2) = pl%vb(:,i2) + sgn * dt * pl%ah(:,i2)
pl%ah(:,ind1(1:nenc)) = 0.0_DP
pl%ah(:,ind2(1:nenc)) = 0.0_DP
pl%ah(:,i1) = 0.0_DP
pl%ah(:,i2) = 0.0_DP
end associate
end do
else
Expand Down

0 comments on commit b80d682

Please sign in to comment.