Skip to content

Commit 1914b78

Browse files
fix: run array variables hack on equations added by CSE hack
1 parent 4927c6d commit 1914b78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/structural_transformation/symbolics_tearing.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ function cse_and_array_hacks(obs, subeqs, unknowns, neweqs; cse = true, array =
696696
tempvar; T = Symbolics.symtype(rhs_arr)))
697697
tempvar = setmetadata(
698698
tempvar, Symbolics.ArrayShapeCtx, Symbolics.shape(rhs_arr))
699+
vars!(all_vars, rhs_arr)
699700
tempeq = tempvar ~ rhs_arr
700701
rhs_to_tempvar[rhs_arr] = tempvar
701702
push!(obs, tempeq)

0 commit comments

Comments
 (0)