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

Commit

Permalink
More position tweaks to hit and run
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 21, 2023
1 parent 49c9a72 commit 7845d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fraggle/fraggle_generate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ module subroutine fraggle_generate_pos_vec(collider, nbody_system, param, lfailu
fragments%rc(:,i) = fragments%rc(:,i) + fragment_cloud_center(:,j)

if (lhitandrun) then
fragments%rc(:,i) = fragments%rc(:,i) + (fragment_cloud_radius(j) + maxval(mass_rscale)) * impactors%bounce_unit(:) ! Shift the stretched cloud downrange
fragments%rc(:,i) = fragments%rc(:,i) + 2 * fragment_cloud_radius(j) * mass_rscale(i) * impactors%bounce_unit(:) ! Shift the stretched cloud downrange
else
! Make sure that the fragments are positioned away from the impact point
direction = dot_product(fragments%rc(:,i) - impactors%rcimp(:), fragment_cloud_center(:,j) - impactors%rcimp(:))
Expand Down

0 comments on commit 7845d71

Please sign in to comment.