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.
1 parent 5cf19a9 commit e9a06c5Copy full SHA for e9a06c5
src/systems/nonlinear/initializesystem.jl
@@ -45,7 +45,7 @@ function generate_initializesystem(sys::ODESystem;
45
push!(defs, y => x)
46
elseif y isa Symbolics.Arr
47
# TODO: don't scalarize arrays
48
- push!(defs, (collect(y) .=> x)...)
+ merge!(defs, Dict(scalarize(y .=> x)))
49
elseif y isa Symbolics.BasicSymbolic
50
# y is a derivative expression expanded; add it to the initialization equations
51
push!(eqs_ics, y ~ x)
0 commit comments