Skip to content

Commit 2ee6e24

Browse files
fix: remove unnecessary scalarization in InitializationProblem
1 parent fd1d16d commit 2ee6e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/problems/initializationproblem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ All other keyword arguments are forwarded to the wrapped nonlinear problem const
3939
for k in keys(op)
4040
has_u0_ics |= is_variable(sys, k) || isdifferential(k) ||
4141
symbolic_type(k) == ArraySymbolic() &&
42-
is_sized_array_symbolic(k) && is_variable(sys, first(collect(k)))
42+
is_sized_array_symbolic(k) && is_variable(sys, unwrap(first(wrap(k))))
4343
end
4444
if !has_u0_ics && get_initializesystem(sys) !== nothing
4545
isys = get_initializesystem(sys; initialization_eqs, check_units)

0 commit comments

Comments
 (0)