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

Commit

Permalink
Fixing velocity vector
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Jan 7, 2023
1 parent 71b8c51 commit a546c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fraggle/fraggle_generate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ module subroutine fraggle_generate_vel_vec(collider, nbody_system, param, lfailu
vmag = vesc * vscale(i)
rimp(:) = fragments%rc(:,i) - impactors%rbimp(:)
vimp_unit(:) = .unit. rimp(:)
fragments%vc(:,i) = (impactors%bounce_unit(:) + vimp_unit(:)) * vsign(i)
fragments%vc(:,i) = vmag * .unit.fragments%vc(:,i) !+ vrot(:)
fragments%vc(:,i) = vimp_unit(:) * vsign(i)
fragments%vc(:,i) = vmag * .unit.fragments%vc(:,i) + vrot(:)
end if
end do

Expand Down

0 comments on commit a546c0d

Please sign in to comment.