Skip to content

Commit

Permalink
[Coloring] avoid index conflict in variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Oct 18, 2024
1 parent 99304d4 commit 86d8452
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]

Check warning on line 348 in src/Nonlinear/ReverseAD/Coloring/Coloring.jl

View check run for this annotation

Codecov / codecov/patch

src/Nonlinear/ReverseAD/Coloring/Coloring.jl#L347-L348

Added lines #L347 - L348 were not covered by tests
i = min(color[u], color[v])
j = max(color[u], color[v])
idx = twocolorindex[i, j]
Expand Down

0 comments on commit 86d8452

Please sign in to comment.