Skip to content

Commit 7767fb5

Browse files
fix: handle unsized array symbolics in get_possibly_array_fallback_singletons
1 parent a25aab4 commit 7767fb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/nonlinear/initializesystem.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ function get_possibly_array_fallback_singletons(varmap, p)
356356
return varmap[p]
357357
end
358358
if symbolic_type(p) == ArraySymbolic()
359+
is_sized_array_symbolic(p) || return nothing
359360
scal = collect(p)
360361
if all(x -> haskey(varmap, x), scal)
361362
res = [varmap[x] for x in scal]

0 commit comments

Comments
 (0)