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

Commit

Permalink
Removed spurious coordinate system transform. x and v are already bar…
Browse files Browse the repository at this point in the history
…ycentric.
  • Loading branch information
daminton committed Aug 16, 2021
1 parent b9d815e commit 412c1dd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/symba/symba_collision.f90
Original file line number Diff line number Diff line change
Expand Up @@ -957,10 +957,6 @@ module subroutine symba_collision_resolve_fragmentations(self, system, param)
if (.not. lgoodcollision) cycle
if (any(pl%status(idx_parent(:)) /= COLLISION)) cycle ! One of these two bodies has already been resolved

! Convert from DH to barycentric
x(:,1) = x(:,1) + cb%xb(:)
x(:,2) = x(:,2) + cb%xb(:)

! Convert all quantities to SI units and determine which of the pair is the projectile vs. target before sending them
! to symba_regime
if (mass(1) > mass(2)) then
Expand Down Expand Up @@ -1047,10 +1043,6 @@ module subroutine symba_collision_resolve_mergers(self, system, param)
if (.not. lgoodcollision) cycle
if (any(pl%status(idx_parent(:)) /= COLLISION)) cycle ! One of these two bodies has already been resolved

! Convert from DH to barycentric
x(:,1) = x(:,1) + cb%xb(:)
x(:,2) = x(:,2) + cb%xb(:)

status = symba_collision_casemerge(system, param, family, x, v, mass, radius, L_spin, Ip)
end do
end select
Expand Down

0 comments on commit 412c1dd

Please sign in to comment.