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

Commit

Permalink
Removed ntp==0 check to allow the discard code to run the coordinate …
Browse files Browse the repository at this point in the history
…conversions even if there are no test particles
  • Loading branch information
daminton committed Mar 1, 2022
1 parent 8bef144 commit 5f3a079
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/discard/discard.f90
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ module subroutine discard_tp(self, system, param)
associate(tp => self, cb => system%cb, pl => system%pl)
ntp = tp%nbody
npl = pl%nbody
if ((ntp == 0) .or. (npl ==0)) return

if ((param%rmin >= 0.0_DP) .or. (param%rmax >= 0.0_DP) .or. &
(param%rmaxu >= 0.0_DP) .or. ((param%qmin >= 0.0_DP) .and. (param%qmin_coord == "BARY"))) then
Expand Down

0 comments on commit 5f3a079

Please sign in to comment.