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 e818b97 commit 2c14c75Copy full SHA for 2c14c75
src/systems/abstractsystem.jl
@@ -236,7 +236,7 @@ function independent_variables(sys::AbstractSystem)
236
if !(sys isa System)
237
@warn "Please declare ($(typeof(sys))) as a subtype of `AbstractTimeDependentSystem`, `AbstractTimeIndependentSystem` or `AbstractMultivariateSystem`."
238
end
239
- if isdefined(sys, :iv)
+ if isdefined(sys, :iv) && getfield(sys, :iv) !== nothing
240
return [getfield(sys, :iv)]
241
elseif isdefined(sys, :ivs)
242
return getfield(sys, :ivs)
0 commit comments