Skip to content

Commit 5878ad6

Browse files
committed
fix total_sub
1 parent 37170c5 commit 5878ad6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/structural_transformation/symbolics_tearing.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ function generate_system_equations!(state::TearingState, neweqs, var_eq_matching
464464
@unpack solvable_graph, var_to_diff, eq_to_diff, graph = structure
465465
eq_var_matching = invview(var_eq_matching)
466466
diff_to_var = invview(var_to_diff)
467+
467468
total_sub = Dict()
468469
if is_only_discrete(structure)
469470
for v in fullvars
@@ -515,6 +516,7 @@ function generate_system_equations!(state::TearingState, neweqs, var_eq_matching
515516
rem_edge!(graph, e, iv)
516517
end
517518

519+
total_sub[simplify_shifts(neweq.lhs)] = neweq.rhs
518520
push!(diff_eqs, neweq)
519521
push!(diffeq_idxs, ieq)
520522
push!(diff_vars, diff_to_var[iv])

0 commit comments

Comments
 (0)