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

Commit

Permalink
Added the symba_util_take_system_snapshot implementation interface
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 4, 2022
1 parent c659ca1 commit f1502c0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,20 @@ module subroutine symba_util_final_system(self)
end subroutine symba_util_final_system


module subroutine symba_util_final_snapshot(self)
!! author: David A. Minton
!!
!! Finalize the SyMBA nbody system object - deallocates all allocatables
implicit none
! Argument
type(symba_system_snapshot), intent(inout) :: self !! SyMBA nbody system object

call self%dealloc()

return
end subroutine symba_util_final_snapshot


module subroutine symba_util_final_tp(self)
!! author: David A. Minton
!!
Expand Down Expand Up @@ -1279,4 +1293,19 @@ module subroutine symba_util_spill_tp(self, discards, lspill_list, ldestructive)
return
end subroutine symba_util_spill_tp


module subroutine symba_util_take_system_snapshot(self, system, param, t)
!! author: David A. Minton
!!
!! Takes a minimal snapshot of the state of the system during an encounter so that the trajectories
!! Can be played back through the encounter
implicit none
class(symba_system_snapshot), intent(inout) :: self !! SyMBA nbody system snapshot object
class(symba_nbody_system), intent(in) :: system !! SyMBA nbody system object
class(symba_parameters), intent(in) :: param !! Current run configuration parameters
real(DP), intent(in) :: t !! current time

return
end subroutine symba_util_take_system_snapshot

end submodule s_symba_util

0 comments on commit f1502c0

Please sign in to comment.