@ -47,7 +47,7 @@ which_index(s::system, dim::Int, coord::Int)::Int = (dim - 1) * (s.n - 1) + coor
function nearest(s::system, Δk::Int)::Int
# TODO: Optimize
while true
if Δk > (s.N ÷ 2 - 1)
if Δk >= s.N ÷ 2
Δk -= s.N
elseif Δk < -s.N ÷ 2
Δk += s.N