From 5987b75d2a0e528728d798d6f855de1f7a9398d3 Mon Sep 17 00:00:00 2001 From: annamariadziubyna Date: Wed, 22 Nov 2023 12:46:23 +0100 Subject: [PATCH] change cl_h spectrum --- src/clustered_hamiltonian.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clustered_hamiltonian.jl b/src/clustered_hamiltonian.jl index 2ca6486..4b8f8a2 100644 --- a/src/clustered_hamiltonian.jl +++ b/src/clustered_hamiltonian.jl @@ -480,7 +480,7 @@ function clustered_hamiltonian(fname::String, Nx::Integer = 240, Ny::Integer = 3 if length(index) == 2 y, x = index Eng = functions[value]' - sp = Spectrum(collect(Eng), Vector{Vector{Int}}[], zeros(1)) + sp = Spectrum(collect(Eng), Vector{Vector{Int}}[], zeros(Int, N[y+1, x+1])) set_props!(cl_h, (x+1, y+1), Dict(:spectrum => sp)) elseif length(index) == 4 y1, x1, y2, x2 = index