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

Commit

Permalink
Added a check for when all massive bodies are gone
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 15, 2023
1 parent e220a6f commit 39bbe26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/swiftest/swiftest_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1850,6 +1850,8 @@ module subroutine swiftest_util_rearray_pl(self, nbody_system, param)
npl = pl%nbody
end if

if (npl == 0) return

! Reset all of the status flags for this body
pl%status(1:npl) = ACTIVE
do i = 1, npl
Expand Down

0 comments on commit 39bbe26

Please sign in to comment.