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.
independent_variables
1 parent 5b47bea commit b921da8Copy full SHA for b921da8
src/systems/abstractsystem.jl
@@ -94,11 +94,11 @@ See also [`@independent_variables`](@ref) and [`ModelingToolkit.get_iv`](@ref).
94
"""
95
function independent_variables(sys::AbstractSystem)
96
if isdefined(sys, :iv) && getfield(sys, :iv) !== nothing
97
- return [getfield(sys, :iv)]
+ return SymbolicT[getfield(sys, :iv)]
98
elseif isdefined(sys, :ivs)
99
- return getfield(sys, :ivs)
+ return getfield(sys, :ivs)::Vector{SymbolicT}
100
else
101
- return []
+ return SymbolicT[]
102
end
103
104
0 commit comments