Skip to content

Commit c850df7

Browse files
fix: don't wrap arrays in Origin in array hack if not offset
1 parent 2646b81 commit c850df7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/structural_transformation/symbolics_tearing.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,9 @@ getindex_wrapper(x, i) = x[i...]
771771

772772
# PART OF HACK 2
773773
function change_origin(origin, arr)
774+
if all(isone, Tuple(origin))
775+
return arr
776+
end
774777
return Origin(origin)(arr)
775778
end
776779

0 commit comments

Comments
 (0)