diff --git a/NDTensors/Project.toml b/NDTensors/Project.toml index 02fc29b4fa..418969d45a 100644 --- a/NDTensors/Project.toml +++ b/NDTensors/Project.toml @@ -33,7 +33,7 @@ Requires = "1.1" SimpleTraits = "0.9.4" SplitApplyCombine = "1.2.2" StaticArrays = "0.12, 1.0" -Strided = "0.3, 1" +Strided = "0.3, 1, 2" TimerOutputs = "0.5.5" TupleTools = "1.2.0" julia = "1.6" 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