Skip to content

Commit 172a455

Browse files
authored
Fix periodic square lattice point (ITensor#1110)
1 parent 95397a1 commit 172a455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/physics/lattices.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function square_lattice(Nx::Int, Ny::Int; kwargs...)::Lattice
8686
latt[b += 1] = LatticeBond(n, n + 1, x, y, x, y + 1)
8787
end
8888
if yperiodic && y == 1
89-
latt[b += 1] = LatticeBond(n, n + Ny - 1, x, y, x, y + Ny)
89+
latt[b += 1] = LatticeBond(n, n + Ny - 1, x, y, x, y + Ny - 1)
9090
end
9191
end
9292
end

0 commit comments

Comments
 (0)