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

Commit

Permalink
Cleanup and bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 22, 2022
1 parent d62cec5 commit f63621d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/collision/collision_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ module subroutine collision_util_snapshot(self, param, nbody_system, t, arg)
case("before")
! Saves the states of the bodies involved in the collision before the collision is resolved
associate (idx => nbody_system%collider%impactors%id, ncoll => nbody_system%collider%impactors%ncoll)
allocate(pl, mold=nbody_system%pl)
call pl%setup(ncoll, param)
pl%id(:) = nbody_system%pl%id(idx(:))
pl%Gmass(:) = nbody_system%pl%Gmass(idx(:))
Expand Down
4 changes: 2 additions & 2 deletions src/swiftest/swiftest_setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ module subroutine swiftest_setup_construct_system(nbody_system, param)
allocate(symba_pl :: nbody_system%pl_adds)
allocate(symba_pl :: nbody_system%pl_discards)

allocate(collision_list_pltp :: nbody_system%pltp_encounter)
allocate(collision_list_plpl :: nbody_system%plpl_encounter)
allocate(symba_list_pltp :: nbody_system%pltp_encounter)
allocate(symba_list_plpl :: nbody_system%plpl_encounter)
allocate(collision_list_plpl :: nbody_system%plpl_collision)

if (param%lenc_save_trajectory .or. param%lenc_save_closest) then
Expand Down

0 comments on commit f63621d

Please sign in to comment.