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

Commit

Permalink
Fixed bad dealloc call that causes a crash when system particle types…
Browse files Browse the repository at this point in the history
… are not allocated
  • Loading branch information
daminton committed Oct 13, 2021
1 parent aa37c3d commit 22a2bb8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/util/util_dealloc.f90
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ module subroutine util_dealloc_system(self)
! Argument
class(swiftest_nbody_system), intent(inout) :: self !! Swiftest nbody system object

call self%pl%dealloc()
call self%tp%dealloc()
call self%tp_discards%dealloc()
call self%pl_discards%dealloc()

if (allocated(self%cb)) deallocate(self%cb)
if (allocated(self%pl)) deallocate(self%pl)
if (allocated(self%tp)) deallocate(self%tp)
Expand Down

0 comments on commit 22a2bb8

Please sign in to comment.