Skip to content

Commit

Permalink
Merge branch 'sasina' of github.com:iitis/SpinGlassPEPS.jl into kd/in…
Browse files Browse the repository at this point in the history
…dexing-tests
  • Loading branch information
kdomino committed Jan 28, 2021
2 parents 39f7d39 + d6aa705 commit 99ef15c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/graph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ mutable struct Cluster
cl.edges = SimpleEdge[]

rank = get_prop(ig, :rank)

# cl.rank = rank[1:L]
cl.rank = zeros(Int, L)

for (i, w) enumerate(vlist)
Expand Down
7 changes: 0 additions & 7 deletions src/ising.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ function energy(fg::MetaDiGraph, edge::Edge)
for (j, η) enumerate(vec(wSp))
en[:, j] = energy.(vec(vSp), Ref(edge.J), Ref(η))
end
#=
for (j, η) ∈ enumerate(vec(wSp))
for (i, σ) ∈ enumerate(vec(vSp))
en[i, j] = energy(σ, Ref(edge.J), η)
end
end
=#
en
end

Expand Down

0 comments on commit 99ef15c

Please sign in to comment.