diff --git a/Project.toml b/Project.toml index c26cc0c399..3d466d63b4 100644 --- a/Project.toml +++ b/Project.toml @@ -32,7 +32,7 @@ ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444" [compat] Adapt = "3.5" -BitIntegers = "0.2" +BitIntegers = "0.2, 0.3" ChainRulesCore = "1.10" Compat = "2.1, 3, 4" Dictionaries = "0.3.5" diff --git a/src/physics/lattices.jl b/src/physics/lattices.jl index 42280edc6a..54b3c635f6 100644 --- a/src/physics/lattices.jl +++ b/src/physics/lattices.jl @@ -86,7 +86,7 @@ function square_lattice(Nx::Int, Ny::Int; kwargs...)::Lattice latt[b += 1] = LatticeBond(n, n + 1, x, y, x, y + 1) end if yperiodic && y == 1 - latt[b += 1] = LatticeBond(n, n + Ny - 1, x, y, x, y + Ny) + latt[b += 1] = LatticeBond(n, n + Ny - 1, x, y, x, y + Ny - 1) end end end