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

Commit

Permalink
Made relative velocity in symba_encounter_check to be heliocentric in…
Browse files Browse the repository at this point in the history
…stead of barycentric to stay consistent with Swifter
  • Loading branch information
daminton committed Feb 17, 2022
1 parent af6c59b commit 858003f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symba/symba_encounter_check.f90
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module function symba_encounter_check(self, param, system, dt, irec) result(lany
i = self%index1(k)
j = self%index2(k)
xr(:) = pl%xh(:,j) - pl%xh(:,i)
vr(:) = pl%vb(:,j) - pl%vb(:,i)
vr(:) = pl%vh(:,j) - pl%vh(:,i)
rcrit12 = pl%renc(i) + pl%renc(j)
call encounter_check_one(xr(1), xr(2), xr(3), vr(1), vr(2), vr(3), rcrit12, dt, lencounter(lidx), self%lvdotr(k))
if (lencounter(lidx)) then
Expand All @@ -146,7 +146,7 @@ module function symba_encounter_check(self, param, system, dt, irec) result(lany
i = self%index1(k)
j = self%index2(k)
xr(:) = tp%xh(:,j) - pl%xh(:,i)
vr(:) = tp%vb(:,j) - pl%vb(:,i)
vr(:) = tp%vh(:,j) - pl%vh(:,i)
call encounter_check_one(xr(1), xr(2), xr(3), vr(1), vr(2), vr(3), pl%renc(i), dt, &
lencounter(lidx), self%lvdotr(k))
if (lencounter(lidx)) then
Expand Down

0 comments on commit 858003f

Please sign in to comment.