Neighbor list fails for 1D and 2D case where the span of the cell is zero in some directions as reported in #37.
This is caused by using std::numeric_limits<double>::epsilon() when checking the span, which is too small to be distinguishable. Fixed by setting tolerance to 10*epsilon.
Neighbor list fails for 1D and 2D case where the span of the cell is zero in some directions as reported in #37.
This is caused by using
std::numeric_limits<double>::epsilon()
when checking the span, which is too small to be distinguishable. Fixed by setting tolerance to10*epsilon
.