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

Commit

Permalink
Save fraggle snapshot to the symba storage object
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 8, 2022
1 parent 127e736 commit 2ea96cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ module subroutine symba_util_take_encounter_snapshot(self, param, t)
class(swiftest_parameters), intent(in) :: param !! Current run configuration parameters
real(DP), intent(in) :: t !! current time
! Arguments
type(encounter_snapshot) :: snapshot
type(fraggle_encounter_snapshot) :: snapshot
integer(I4B) :: i, npl_snap, ntp_snap

associate(npl => self%pl%nbody, ntp => self%tp%nbody)
Expand Down Expand Up @@ -1380,6 +1380,10 @@ module subroutine symba_util_take_encounter_snapshot(self, param, t)
end select
end select

if (self%plplenc_list%lcollision) then
allocate(snapshot%colliders, source=self%colliders)
allocate(snapshot%fragments, source=self%fragments)
end if

! Save the snapshot
call symba_util_save_storage(self,snapshot,t)
Expand Down

0 comments on commit 2ea96cd

Please sign in to comment.