Skip to content

Commit 91b7c29

Browse files
fixup! fix: make add_initialization_parameters type-stable
1 parent 21fcf5e commit 91b7c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ function add_initialization_parameters(sys::AbstractSystem; split = true)
564564
# add derivatives of all variables for steady-state initial conditions
565565
if is_time_dependent(sys) && !is_discrete_system(sys)
566566
D = Differential(get_iv(sys)::SymbolicT)
567-
for v in all_initialvars
567+
for v in collect(all_initialvars)
568568
iscall(v) && push!(all_initialvars, D(v))
569569
end
570570
end

0 commit comments

Comments
 (0)