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.
Initial
1 parent 5e439ed commit 4626b56Copy full SHA for 4626b56
src/systems/abstractsystem.jl
@@ -717,6 +717,11 @@ function add_initialization_parameters(sys::AbstractSystem)
717
push!(all_initialvars, x)
718
end
719
720
+
721
+ # add derivatives of all variables for steady-state initial conditions
722
+ if is_time_dependent(sys) && !(sys isa AbstractDiscreteSystem)
723
+ union!(all_initialvars, Differential(get_iv(sys)).(all_initialvars))
724
+ end
725
for eq in parameter_dependencies(sys)
726
is_variable_floatingpoint(eq.lhs) || continue
727
push!(all_initialvars, eq.lhs)
0 commit comments