Skip to content

Commit 4762af9

Browse files
Update index_cache.jl
1 parent 914fef7 commit 4762af9

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/systems/index_cache.jl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -239,26 +239,6 @@ function check_index_map(idxmap, sym)
239239
nothing
240240
end
241241
end
242-
243-
function ParameterIndex(ic::IndexCache, p, sub_idx = ())
244-
p = unwrap(p)
245-
return if haskey(ic.tunable_idx, p)
246-
ParameterIndex(SciMLStructures.Tunable(), (ic.tunable_idx[p]..., sub_idx...))
247-
elseif haskey(ic.discrete_idx, p)
248-
ParameterIndex(SciMLStructures.Discrete(), (ic.discrete_idx[p]..., sub_idx...))
249-
elseif haskey(ic.constant_idx, p)
250-
ParameterIndex(SciMLStructures.Constants(), (ic.constant_idx[p]..., sub_idx...))
251-
elseif haskey(ic.dependent_idx, p)
252-
ParameterIndex(DEPENDENT_PORTION, (ic.dependent_idx[p]..., sub_idx...))
253-
elseif haskey(ic.nonnumeric_idx, p)
254-
ParameterIndex(NONNUMERIC_PORTION, (ic.nonnumeric_idx[p]..., sub_idx...))
255-
elseif iscall(p) && operation(p) === getindex
256-
_p, sub_idx... = arguments(p)
257-
ParameterIndex(ic, _p, sub_idx)
258-
else
259-
nothing
260-
end
261-
end
262242

263243
function discrete_linear_index(ic::IndexCache, idx::ParameterIndex)
264244
idx.portion isa SciMLStructures.Discrete || error("Discrete variable index expected")

0 commit comments

Comments
 (0)