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

Commit

Permalink
Switched variable from associated to integer based on an error that c…
Browse files Browse the repository at this point in the history
…ame up when compiling with ifx
  • Loading branch information
daminton committed May 18, 2023
1 parent db6ad98 commit 43ae5ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/collision/collision_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ module subroutine collision_util_add_fragments_to_collider(self, nbody_system, p
class(base_nbody_system), intent(inout) :: nbody_system !! Swiftest nbody system object
class(base_parameters), intent(in) :: param !! Current Swiftest run configuration parameters
! Internals
integer(I4B) :: i, npl_before, npl_after
integer(I4B) :: i, npl_before, npl_after, nfrag
logical, dimension(:), allocatable :: lexclude

select type(nbody_system)
class is (swiftest_nbody_system)
associate(fragments => self%fragments, impactors => self%impactors, nfrag => self%fragments%nbody, pl => nbody_system%pl, cb => nbody_system%cb)
associate(fragments => self%fragments, impactors => self%impactors, pl => nbody_system%pl, cb => nbody_system%cb)
npl_after = pl%nbody
npl_before = npl_after - nfrag
nfrag = self%fragments%nbody
allocate(lexclude(npl_after))

pl%status(npl_before+1:npl_after) = ACTIVE
Expand Down

0 comments on commit 43ae5ed

Please sign in to comment.