From dea961a2b1cd9aea9e410792308ab257762387a9 Mon Sep 17 00:00:00 2001 From: anand43 Date: Tue, 12 Dec 2023 15:38:52 -0500 Subject: [PATCH] Changed the condition from "or" to "and" to allow test particles to get a kick --- src/whm/whm_kick.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/whm/whm_kick.f90 b/src/whm/whm_kick.f90 index 93b448967..2e70a431e 100644 --- a/src/whm/whm_kick.f90 +++ b/src/whm/whm_kick.f90 @@ -92,7 +92,7 @@ module subroutine whm_kick_getacch_tp(self, nbody_system, param, t, lbeg) associate(tp => self, pl => nbody_system%pl, cb => nbody_system%cb) npl = nbody_system%pl%nbody ntp = self%nbody - if (ntp == 0 .or. npl == 0) return + if (ntp == 0 .and. npl == 0) return nbody_system%lbeg = lbeg if (lbeg) then