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.
1 parent 2f0f894 commit ec4c32eCopy full SHA for ec4c32e
src/systems/index_cache.jl
@@ -299,6 +299,9 @@ function IndexCache(sys::AbstractSystem)
299
for v in vs
300
if (idx = get(disc_idxs, v, nothing)) !== nothing
301
push!(timeseries, idx.clock_idx)
302
+ elseif iscall(v) && operation(v) === getindex &&
303
+ (idx = get(disc_idxs, arguments(v)[1], nothing)) !== nothing
304
+ push!(timeseries, idx.clock_idx)
305
elseif haskey(observed_syms_to_timeseries, v)
306
union!(timeseries, observed_syms_to_timeseries[v])
307
elseif haskey(dependent_pars_to_timeseries, v)
0 commit comments