Skip to content

Commit 5bfb2a9

Browse files
refactor: remove source of allocations in InitializationProblem
1 parent 7db8dec commit 5bfb2a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/problems/initializationproblem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ All other keyword arguments are forwarded to the wrapped nonlinear problem const
7979
@warn errmsg
8080
end
8181

82-
uninit = setdiff(unknowns(sys), [unknowns(isys); observables(isys)])
82+
uninit = setdiff(unknowns(sys), unknowns(isys), observables(isys))
8383

8484
# TODO: throw on uninitialized arrays
8585
filter!(x -> !(x isa Symbolics.Arr), uninit)

0 commit comments

Comments
 (0)