Skip to content

Commit

Permalink
fixed wraparound which was explicitly turned off
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Nov 7, 2024
1 parent 041518c commit 6bd1395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sisl/_indices.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ cdef Py_ssize_t _indices_in_cylinder(const double[:, ::1] dxyz, const double R,
skip = 0
for j in range(xyz-1):
skip |= dxyz[i, j] > R
if skip or dxyz[i, -1] > h: continue
if skip or dxyz[i, xyz-1] > h: continue

L2 = 0.
for j in range(xyz-1):
Expand Down

0 comments on commit 6bd1395

Please sign in to comment.