Skip to content

Commit

Permalink
fix clashing variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
mlubin committed Oct 27, 2018
1 parent 9ca786b commit b7ce216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nlp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ function MOI.eval_constraint_jacobian(d::NLPEvaluator, J, x)
for i in nzidx
@inbounds grad_storage[i] = 0.0
end
for idx in ex.dependent_subexpressions
@inbounds subexpr_reverse_values[idx] = 0.0
for i in ex.dependent_subexpressions
@inbounds subexpr_reverse_values[i] = 0.0
end

reverse_extract(grad_storage,ex.reverse_storage,ex.nd,ex.adj,subexpr_reverse_values,1.0)
Expand Down

0 comments on commit b7ce216

Please sign in to comment.