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 95397a1 commit 172a455Copy full SHA for 172a455
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