We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InitializationProblem
1 parent fd1d16d commit 2ee6e24Copy full SHA for 2ee6e24
src/problems/initializationproblem.jl
@@ -39,7 +39,7 @@ All other keyword arguments are forwarded to the wrapped nonlinear problem const
39
for k in keys(op)
40
has_u0_ics |= is_variable(sys, k) || isdifferential(k) ||
41
symbolic_type(k) == ArraySymbolic() &&
42
- is_sized_array_symbolic(k) && is_variable(sys, first(collect(k)))
+ is_sized_array_symbolic(k) && is_variable(sys, unwrap(first(wrap(k))))
43
end
44
if !has_u0_ics && get_initializesystem(sys) !== nothing
45
isys = get_initializesystem(sys; initialization_eqs, check_units)
0 commit comments