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

Commit

Permalink
Keep on adding snapshot stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 10, 2022
1 parent 245c9bd commit 4d2fb37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/modules/fraggle_classes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module fraggle_classes
real(DP), dimension(:), allocatable :: rotmag !! Array of rotation magnitudes of individual fragments
real(DP), dimension(:), allocatable :: v_r_mag !! Array of radial direction velocity magnitudes of individual fragments
real(DP), dimension(:), allocatable :: v_t_mag !! Array of tangential direction velocity magnitudes of individual fragments
class(swiftest_pl), allocatable :: pl !! A snapshot of the fragments created in the collision

! Energy and momentum book-keeping variables that characterize the whole system of fragments
real(DP) :: ke_orbit !! Current orbital kinetic energy of the system of fragments in the collisional frame
Expand Down
1 change: 1 addition & 0 deletions src/symba/symba_collision.f90
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ subroutine symba_collision_mergeaddsub(system, param, status)

! Log the properties of the new bodies
call fraggle_io_log_pl(plnew, param)
allocate(system%fragments%pl, source=plnew)

! Append the new merged body to the list
nstart = pl_adds%nbody + 1
Expand Down
6 changes: 3 additions & 3 deletions src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1323,12 +1323,12 @@ module subroutine symba_util_take_collision_snapshot(self, param, t, stage)
end associate

case("after")

allocate(snapshot%fragments, source=self%fragments)
end select


! Save the self
call symba_util_save_storage(self,snapshot,t)
! Save the snapshot
!call symba_util_save_storage(self,snapshot,t)
return
end subroutine symba_util_take_collision_snapshot

Expand Down

0 comments on commit 4d2fb37

Please sign in to comment.