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

Commit

Permalink
Fixed problem that was causing bodies to overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 20, 2023
1 parent 8df230d commit 13f6a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fraggle/fraggle_generate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ module subroutine fraggle_generate_pos_vec(collider, nbody_system, param, lfailu
if (.not.loverlap(j)) cycle
loverlap(j) = .false.
! Check for overlaps between fragments
do i = j + 1, nfrag
do concurrent(i = 1:nfrag, i/=j)
dis = .mag.(fragments%rc(:,j) - fragments%rc(:,i))
loverlap(j) = loverlap(j) .or. (dis <= rbuffer * (fragments%radius(i) + fragments%radius(j)))
end do
Expand Down

0 comments on commit 13f6a8a

Please sign in to comment.