mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 12:35:29 -04:00
Address #706 comments
This commit is contained in:
parent
6d82c7b48b
commit
19eca29642
1 changed files with 1 additions and 1 deletions
|
|
@ -673,7 +673,7 @@ def _close_random_pack(domain, particles, contraction_rate):
|
|||
|
||||
# Array of particle indices, indices of nearest neighbors, and
|
||||
# distances to nearest neighbors
|
||||
a = np.dstack(([i for i in range(len(n))], n, d))[0]
|
||||
a = np.vstack((list(range(n.size)), n, d)).T
|
||||
|
||||
# Sort along second column and swap first and second columns to create
|
||||
# array of nearest neighbor indices, indices of particles they are
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue