We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2d4cf8 commit 42430bcCopy full SHA for 42430bc
src/physics/lattices.jl
@@ -86,7 +86,7 @@ function square_lattice(Nx::Int, Ny::Int; kwargs...)::Lattice
86
latt[b += 1] = LatticeBond(n, n + 1, x, y, x, y + 1)
87
end
88
if yperiodic && y == 1
89
- 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)
90
91
92
0 commit comments