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

Commit

Permalink
Added explicit ranges to whole array operations
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 19, 2021
1 parent 18b497e commit 8ba4272
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -455,15 +455,15 @@ module subroutine symba_util_rearray_pl(self, system, param)
end if

! Reset all of the status flags for this body
where(pl%status(:) /= INACTIVE)
pl%status(:) = ACTIVE
pl%ldiscard(:) = .false.
pl%lcollision(:) = .false.
pl%lmtiny(:) = pl%Gmass(:) > param%GMTINY
pl%lmask(:) = .true.
where(pl%status(1:pl%nbody) /= INACTIVE)
pl%status(1:pl%nbody) = ACTIVE
pl%ldiscard(1:pl%nbody) = .false.
pl%lcollision(1:pl%nbody) = .false.
pl%lmtiny(1:pl%nbody) = pl%Gmass(1:pl%nbody) > param%GMTINY
pl%lmask(1:pl%nbody) = .true.
elsewhere
pl%ldiscard(:) = .true.
pl%lmask(:) = .false.
pl%ldiscard(1:pl%nbody) = .true.
pl%lmask(1:pl%nbody) = .false.
end where

pl%nplm = count(pl%lmtiny(1:pl%nbody) .and. pl%lmask(1:pl%nbody))
Expand Down

0 comments on commit 8ba4272

Please sign in to comment.