Skip to content

Commit c552d28

Browse files
committed
Correct sparsity ID
1 parent b3cfc4a commit c552d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kernel_writer/kernel_write.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ function create_kernel!(expr_hash::String, kernel_ID::Int, factored::Vector{Equa
584584
# sparsity information of inputs[2] and inputs[3])
585585
write_operation(file, factored[factored_ID].rhs, inputs, string.(gradlist), sparsity[input_IDs[2]])
586586
else
587-
write_operation(file, factored[factored_ID].rhs, inputs, string.(gradlist), sparsity[i])
587+
write_operation(file, factored[factored_ID].rhs, inputs, string.(gradlist), sparsity[ID])
588588
end
589589

590590
# Now that we're done with this variable, eliminate this variable

0 commit comments

Comments
 (0)