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

Commit

Permalink
Merge branch 'debug'
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Oct 26, 2021
2 parents 97b328e + 17d6c57 commit 9ba14ad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/encounter/encounter_check.f90
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ module subroutine encounter_check_all_plplm(param, nplm, nplt, xplm, vplm, xplt,
call move_alloc(itmp, index1)
allocate(itmp(nenc+plmplt_nenc))
itmp(1:nenc) = index2(1:nenc)
itmp(nenc+1:nenc+plmplt_nenc) = plmplt_index2(1:plmplt_nenc)
itmp(nenc+1:nenc+plmplt_nenc) = plmplt_index2(1:plmplt_nenc) + nplm ! Be sure to shift these indices back to their natural range
call move_alloc(itmp, index2)
allocate(ltmp(nenc+plmplt_nenc))
ltmp(1:nenc) = lvdotr(1:nenc)
Expand Down Expand Up @@ -517,9 +517,6 @@ subroutine encounter_check_all_sort_and_sweep_plplm(nplm, nplt, xplm, vplm, xplt

call encounter_check_all(nenc, index1, index2, xplm, vplm, xplt, vplt, rencm, renct, dt, lencounter, lvdotr)

! Shift the tiny body indices back to their natural range
index2(:) = index2(:) + nplm

call encounter_check_reduce_broadphase(ntot, nenc, index1, index2, lencounter, lvdotr)
end if
return
Expand Down

0 comments on commit 9ba14ad

Please sign in to comment.