-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Labels
area: frameworkIssues related to the AMUSE framework: rfi, amusifier, MPI issuesIssues related to the AMUSE framework: rfi, amusifier, MPI issueskind: feature requestThe issue requests a feature that AMUSE does not currently haveThe issue requests a feature that AMUSE does not currently have
Description
Currently, the nearest_neighbour method can result in a particle finding itself as its nearest neighbour when checking against another particle set that contains (some of) the same particles:
from amuse.ic.plummer import new_plummer_model
p = new_plummer_model(10)
q = p.copy()
r = q.nearest_neighbour(p)
print(r.key == p.key)returns
[ True, True, True, True, True, True, True, True, True, True]
There should be an option (probably enabled by default) to ensure a particle with the same key is ignored.
Metadata
Metadata
Assignees
Labels
area: frameworkIssues related to the AMUSE framework: rfi, amusifier, MPI issuesIssues related to the AMUSE framework: rfi, amusifier, MPI issueskind: feature requestThe issue requests a feature that AMUSE does not currently haveThe issue requests a feature that AMUSE does not currently have
Type
Projects
Status
Feature Request