Skip to content

Commit 7d2d9de

Browse files
keep the collect to expand symbolic broadcast
1 parent 87f8c17 commit 7d2d9de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/nonlinear/nonlinearsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function NonlinearSystem(eqs, states, ps;
6666
connection_type=nothing,
6767
)
6868
# Move things over, but do not touch array expressions
69-
eqs = eqs isa Vector{Equation} ? [0 ~ x.rhs - x.lhs for x in eqs] : eqs
69+
eqs = [0 ~ x.rhs - x.lhs for x in collect(eqs)]
7070

7171
if !(isempty(default_u0) && isempty(default_p))
7272
Base.depwarn("`default_u0` and `default_p` are deprecated. Use `defaults` instead.", :NonlinearSystem, force=true)

0 commit comments

Comments
 (0)