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

Commit

Permalink
Fixed array shape problem for the double list version of the sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Oct 25, 2021
1 parent a3b8b0d commit abd655c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/encounter/encounter_check.f90
Original file line number Diff line number Diff line change
Expand Up @@ -938,9 +938,11 @@ module subroutine encounter_check_sweep_aabb_double_list(self, n1, n2, nenc, ind
call util_index_array(ind_arr, ntot)
allocate(ibeg(SWEEPDIM * ntot))
allocate(iend(SWEEPDIM * ntot))
do dim = 1, SWEEPDIM
ibeg((dim - 1) * ntot + 1:dim * ntot) = self%aabb(dim)%ibeg(:)
iend((dim - 1) * ntot + 1:dim * ntot) = self%aabb(dim)%iend(:)
do i = 1, ntot
do dim = 1, SWEEPDIM
ibeg((i - 1) * SWEEPDIM + dim) = self%aabb(dim)%ibeg(i)
iend((i - 1) * SWEEPDIM + dim) = self%aabb(dim)%iend(i)
end do
end do
! Sweep the intervals for each of the massive bodies along one dimension
! This will build a ragged pair of index lists inside of the lenc data structure
Expand Down

0 comments on commit abd655c

Please sign in to comment.