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

Commit

Permalink
Fixed incorrect coordinate transform.
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed May 18, 2021
1 parent e1ec26d commit 6fd0d8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/symba/symba_frag_pos.f90
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,8 @@ subroutine set_fragment_radial_velocities(lmerge)

! Recombine the tangential and radial components into the final velocity vector
do i = 1, nfrag
v_r_mag(i) = dot_product(v_r(:,i), v_r_unit(:, i))
v_frag(:, i) = v_r_mag(i) * v_r_unit(:, i) + v_t_mag(i) * v_t_unit(:, i)
v_frag(:, i) = v_r(:, i) + v_t_mag(i) * v_t_unit(:, i)
end do
call shift_vector_to_origin(m_frag, v_frag)
end if

do i = 1, nfrag
Expand Down

0 comments on commit 6fd0d8f

Please sign in to comment.