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

Commit

Permalink
Fixed deallocation error for kinship array
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Nov 5, 2021
1 parent 6cc647a commit c35492e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,12 @@ module subroutine symba_util_dealloc_pl(self)
if (allocated(self%peri)) deallocate(self%peri)
if (allocated(self%atp)) deallocate(self%atp)

do i = 1, self%nbody
call self%kin(i)%dealloc()
end do

if (allocated(self%kin)) deallocate(self%kin)
if (allocated(self%kin)) then
do i = 1, self%nbody
call self%kin(i)%dealloc()
end do
deallocate(self%kin)
end if

call util_dealloc_pl(self)

Expand Down

0 comments on commit c35492e

Please sign in to comment.