Skip to content

Commit

Permalink
Splat scalarized array
Browse files Browse the repository at this point in the history
  • Loading branch information
hersle committed Sep 16, 2024
1 parent 7cb275a commit 847237d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/nonlinear/initializesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function generate_initializesystem(sys::ODESystem;
push!(defs, y => x)
elseif y isa Symbolics.Arr
# TODO: don't scalarize arrays
push!(defs, collect(y) .=> x)
push!(defs, (collect(y) .=> x)...)
elseif y isa Symbolics.BasicSymbolic
# y is a derivative expression expanded; add it to the initialization equations
push!(eqs_ics, y ~ x)
Expand Down

0 comments on commit 847237d

Please sign in to comment.