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

Commit

Permalink
Set temporary snapshot to be non-allocatable when saving
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 8, 2022
1 parent 954764f commit 51d0853
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1340,12 +1340,11 @@ 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(symba_encounter_snapshot), allocatable :: snapshot
type(symba_encounter_snapshot) :: snapshot
integer(I4B) :: i, npl_snap, ntp_snap

associate(npl => self%pl%nbody, ntp => self%tp%nbody)

allocate(symba_encounter_snapshot :: snapshot)
snapshot%t = t

if (npl + ntp == 0) return
Expand Down

0 comments on commit 51d0853

Please sign in to comment.