Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Oct 21, 2022
1 parent ae38997 commit d8e0ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/alias_elimination.jl
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,8 @@ function alias_eliminate_graph!(graph, var_to_diff, mm_orig::SparseMatrixCLIL)
push!(reach₌, c => da)
# `r` is aliased to its previous differentiation level's
# aliases' derivative's equality aliases
for n in neighbors(eqg, da)
(n == da || n == r || is_diff_edge(r, n)) && continue
r === nothing || for n in neighbors(eqg, da)
(n == da || n == prev_r || is_diff_edge(prev_r, n)) && continue
c′ = get_weight(eqg, da, n)
push!(reach₌, c * c′ => n)
end
Expand Down

0 comments on commit d8e0ac9

Please sign in to comment.