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

Commit

Permalink
Fixed bug in fragment position initialization that accidentally rando…
Browse files Browse the repository at this point in the history
…mized the 2nd largest fragment instead of putting it at the opposite end
  • Loading branch information
daminton committed May 28, 2021
1 parent 7150acd commit f15dc6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symba/symba_frag_pos.f90
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ subroutine set_fragment_position_vectors()
x_frag(:, 1) = -y_col_unit(:) * r_max
x_frag(:, 2) = y_col_unit(:) * r_max

call random_number(x_frag(:,2:nfrag))
call random_number(x_frag(:,3:nfrag))
loverlap(:) = .true.
do while (any(loverlap(3:nfrag)))
do i = 3, nfrag
Expand Down

0 comments on commit f15dc6e

Please sign in to comment.