fix fix fix to the k increment.

This commit is contained in:
Patrick Shriwise 2019-03-30 09:05:06 -05:00
parent b8d5cfcefb
commit c69d53ee86

View file

@ -765,7 +765,7 @@ HexLattice::get_indices(Position r, Direction u) const
if (d < d_min || coincident) {
r_t /= std::sqrt(d);
double dp = u.x * r_t.x + u.y * r_t.y;
if (coincident && dp > dp_min) { continue; }
if (coincident && dp > dp_min) { k++; continue; }
// update values
d_min = d;
k_min = k;