Skip to content

Commit 847237d

Browse files
committed
Splat scalarized array
1 parent 7cb275a commit 847237d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/nonlinear/initializesystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function generate_initializesystem(sys::ODESystem;
4545
push!(defs, y => x)
4646
elseif y isa Symbolics.Arr
4747
# TODO: don't scalarize arrays
48-
push!(defs, collect(y) .=> x)
48+
push!(defs, (collect(y) .=> x)...)
4949
elseif y isa Symbolics.BasicSymbolic
5050
# y is a derivative expression expanded; add it to the initialization equations
5151
push!(eqs_ics, y ~ x)

0 commit comments

Comments
 (0)