chr1shr / voro

Voro++: a three-dimensional Voronoi cell library in C++
Other
154 stars 44 forks source link

neigbors method return negative numbers #39

Closed vlccek closed 5 months ago

vlccek commented 5 months ago

Thank you for providing this incredible library.

I'm currently using the development branch of voro to take advantage of its parallel processing features. However, I've come across a challenge with the neighbour identification feature, which occasionally returns negative values. Are these negative numbers indicative of a specific issue, or an overflow?

chr1shr commented 5 months ago

Negative values in the neighbor list correspond to Voronoi faces that:

This issue is discussed in some of the documentation, e.g. the description of neighbor lists under the %n option on the custom output reference.