Skip to content

Commit 42430bc

Browse files
committed
Fix periodic square lattice point
1 parent c2d4cf8 commit 42430bc

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)