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

Commit

Permalink
Added ability to convert over to hit and run if merger body spins too…
Browse files Browse the repository at this point in the history
… fast.
  • Loading branch information
daminton committed Feb 22, 2023
1 parent aac25ad commit 2213b91
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 @@ -160,7 +160,6 @@ module subroutine fraggle_generate_disrupt(self, nbody_system, param, t, lfailur
call fraggle_generate_rot_vec(self, nbody_system, param)
call fraggle_generate_vel_vec(self, nbody_system, param, lfailure)
end if
lfailure = .true.

if (.not.lfailure) then
if (self%fragments%nbody /= nfrag_start) then
Expand Down Expand Up @@ -320,6 +319,7 @@ module subroutine fraggle_generate_merge(self, nbody_system, param, t)
if (rotmag < self%max_rot) then
call self%collision_basic%merge(nbody_system, param, t)
else
call swiftest_io_log_one_message(COLLISION_LOG_OUT, "Merger would break the spin barrier. Converting to pure hit and run" )
impactors%mass_dist(1:2) = impactors%mass(1:2)
call self%hitandrun(nbody_system, param, t)
end if
Expand Down

0 comments on commit 2213b91

Please sign in to comment.