From 42430bc2f527cfe5388c26aa981ebd0eca585b77 Mon Sep 17 00:00:00 2001 From: Ryan Levy Date: Thu, 6 Apr 2023 12:01:33 -0400 Subject: [PATCH 1/2] Fix periodic square lattice point --- src/physics/lattices.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From fcb15f559adc4ef69d9b43d9f766c28159ae913a Mon Sep 17 00:00:00 2001 From: CompatHelper Julia Date: Fri, 19 May 2023 00:44:10 +0000 Subject: [PATCH 2/2] CompatHelper: bump compat for BitIntegers to 0.3, (keep existing compat) --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index c26cc0c399..3d466d63b4 100644 --- a/Project.toml +++ b/Project.toml @@ -32,7 +32,7 @@ ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444" [compat] Adapt = "3.5" -BitIntegers = "0.2" +BitIntegers = "0.2, 0.3" ChainRulesCore = "1.10" Compat = "2.1, 3, 4" Dictionaries = "0.3.5"