Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/structural_transformation/symbolics_tearing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@ function tearing_reassemble(state::TearingState, var_eq_matching,

# respect non-1-indexed arrays
# TODO: get rid of this hack together with the above hack, then remove OffsetArrays dependency
obs_arr_subs[arg1] = Origin(index_first)(obs_arr_subs[arg1])
if !isone(index_first)
obs_arr_subs[arg1] = Origin(index_first)(obs_arr_subs[arg1])
end
end
for i in eachindex(neweqs)
neweqs[i] = fast_substitute(neweqs[i], obs_arr_subs; operator = Symbolics.Operator)
Expand Down
Loading