From 39bbe26de130612bd825504154efb193c59387ed Mon Sep 17 00:00:00 2001 From: David A Minton Date: Tue, 14 Feb 2023 20:08:37 -0500 Subject: [PATCH] Added a check for when all massive bodies are gone --- src/swiftest/swiftest_util.f90 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/swiftest/swiftest_util.f90 b/src/swiftest/swiftest_util.f90 index 5e271605c..cc1b9e398 100644 --- a/src/swiftest/swiftest_util.f90 +++ b/src/swiftest/swiftest_util.f90 @@ -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