Skip to content

Commit 643beba

Browse files
fix: fix bug in array variable wrapper
1 parent e6b093b commit 643beba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function wrap_array_vars(sys::AbstractSystem, exprs; dvs = unknowns(sys))
207207
for (j, x) in enumerate(dvs)
208208
if istree(x) && operation(x) == getindex
209209
arg = arguments(x)[1]
210-
arg in allvars || continue
210+
any(isequal(arg), allvars) || continue
211211
inds = get!(() -> Int[], array_vars, arg)
212212
push!(inds, j)
213213
end

0 commit comments

Comments
 (0)