Skip to content

Commit

Permalink
[Coloring] avoid index conflict in variable name (#2561)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Oct 18, 2024
1 parent 99304d4 commit c3a9551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Nonlinear/ReverseAD/Coloring/Coloring.jl
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ function recovery_preprocess(
sorted_edges[idx] = Tuple{Int,Int}[]
sizehint!(sorted_edges[idx], edge_count[idx])
end
for i in eachindex(g.edges)
u, v = g.edges[i]
for k in eachindex(g.edges)
u, v = g.edges[k]
i = min(color[u], color[v])
j = max(color[u], color[v])
idx = twocolorindex[i, j]
Expand Down

0 comments on commit c3a9551

Please sign in to comment.