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

Commit

Permalink
Tweaks and improvements to log files. Also made sure pure hit and run…
Browse files Browse the repository at this point in the history
… is actually pure
  • Loading branch information
daminton committed Dec 31, 2022
1 parent f7ae4db commit cf7f9f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/Fragmentation/Fragmentation_Movie.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"hitandrun_disrupt" : [np.array([ 0.00, 6.28, 0.0]),
np.array([-1.45, -6.28, 0.0])],
"hitandrun_pure" : [np.array([ 0.00, 6.28, 0.0]),
np.array([-1.50, -6.28, 0.0])]
np.array([-1.51, -6.28, 0.0])]
}

rot_vectors = {"disruption_headon" : [np.array([0.0, 0.0, 0.0]),
Expand Down
5 changes: 2 additions & 3 deletions src/fraggle/fraggle_generate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,7 @@ module subroutine fraggle_generate_hitandrun(self, nbody_system, param, t)
select type(pl => nbody_system%pl)
class is (swiftest_pl)
associate(impactors => self%impactors)
message = "Hit and run between"
call collision_io_collider_message(nbody_system%pl, impactors%id, message)
call swiftest_io_log_one_message(COLLISION_LOG_OUT, trim(adjustl(message)))

if (impactors%mass(1) > impactors%mass(2)) then
jtarg = 1
jproj = 2
Expand All @@ -202,6 +199,8 @@ module subroutine fraggle_generate_hitandrun(self, nbody_system, param, t)
end if
lpure = .false.
call self%set_mass_dist(param)
message = "Hit and run between"
call swiftest_io_log_one_message(COLLISION_LOG_OUT, trim(adjustl(message)))

! Generate the position and velocity distributions of the fragments
call self%disrupt(nbody_system, param, t, lpure)
Expand Down

0 comments on commit cf7f9f6

Please sign in to comment.