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

Commit

Permalink
Deallocate temporary variables during rearray
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 7, 2021
1 parent e880213 commit dcf602a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ module subroutine symba_util_rearray_pl(self, system, param)
call tmp%setup(0,param)
deallocate(tmp)

! Deallocate any temporary variables
if (allocated(pl%xbeg)) deallocate(pl%xbeg)
if (allocated(pl%xend)) deallocate(pl%xend)

! Add in any new bodies
call pl%append(pl_adds)

Expand Down

0 comments on commit dcf602a

Please sign in to comment.