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 bodies with more than one encounter have their acc…
Browse files Browse the repository at this point in the history
…elrations zeroed out between evaluations of each pair
  • Loading branch information
daminton committed Aug 11, 2021
1 parent 00fb68e commit 873f5d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/symba/symba_kick.f90
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ module subroutine symba_kick_pltpenc(self, system, dt, irec, sgn)
else
irecl = irec
end if
if (isplpl) then
pl%ah(:,ind1(1:self%nenc)) = 0.0_DP
pl%ah(:,ind2(1:self%nenc)) = 0.0_DP
else
tp%ah(:,ind2(1:self%nenc)) = 0.0_DP
end if
do k = 1, self%nenc
if (isplpl) then
pl%ah(:,ind1(k)) = 0.0_DP
pl%ah(:,ind2(k)) = 0.0_DP
else
tp%ah(:,ind2(k)) = 0.0_DP
end if
if (isplpl) then
lgoodlevel = (pl%levelg(ind1(k)) >= irm1) .and. (pl%levelg(ind2(k)) >= irm1)
else
Expand Down

0 comments on commit 873f5d1

Please sign in to comment.