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.
IndexCache
1 parent 0a31c91 commit 0b500c1Copy full SHA for 0b500c1
src/systems/index_cache.jl
@@ -117,10 +117,11 @@ function IndexCache(sys::AbstractSystem)
117
affs = [affs]
118
end
119
for affect in affs
120
- if affect isa Equation
121
- is_parameter(sys, affect.lhs) && push!(discs, affect.lhs)
122
- elseif affect isa FunctionalAffect || affect isa ImperativeAffect
+ if affect isa AffectSystem || affect isa FunctionalAffect ||
+ affect isa ImperativeAffect
123
union!(discs, unwrap.(discretes(affect)))
+ elseif isnothing(affect)
124
+ continue
125
else
126
error("Unhandled affect type $(typeof(affect))")
127
0 commit comments