You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -927,6 +954,19 @@ function CopyParamsByTemplate(srcsys::AbstractSystem, syms::AbstractArray{Symbol
927
954
end
928
955
end
929
956
957
+
# Lift buffer indices of multi-buffer portions (discrete/constants/nonnumeric) into
958
+
# the type domain. This is done as a final pass so the contiguous-range merging above
959
+
# can keep operating on plain `ParameterIndex`es.
960
+
for i ineachindex(template)
961
+
entry = template[i]
962
+
# Only lift the `(bufidx, range)` form into the type domain.
963
+
if entry isa ParameterIndex && entry.portion isa Union{SciMLStructures.Discrete, SciMLStructures.Constants, Nonnumeric} && entry.idx isa Tuple{Int, UnitRange{Int}}
0 commit comments