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.
System
1 parent b87fa03 commit 1c6b3d8Copy full SHA for 1c6b3d8
src/systems/abstractsystem.jl
@@ -244,7 +244,9 @@ Get the independent variable(s) of the system `sys`.
244
See also [`@independent_variables`](@ref) and [`ModelingToolkit.get_iv`](@ref).
245
"""
246
function independent_variables(sys::AbstractSystem)
247
- @warn "Please declare ($(typeof(sys))) as a subtype of `AbstractTimeDependentSystem`, `AbstractTimeIndependentSystem` or `AbstractMultivariateSystem`."
+ if !(sys isa System)
248
+ @warn "Please declare ($(typeof(sys))) as a subtype of `AbstractTimeDependentSystem`, `AbstractTimeIndependentSystem` or `AbstractMultivariateSystem`."
249
+ end
250
if isdefined(sys, :iv)
251
return [getfield(sys, :iv)]
252
elseif isdefined(sys, :ivs)
0 commit comments