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 3503046 commit 1f55c5cCopy full SHA for 1f55c5c
src/structural_transformation/utils.jl
@@ -596,7 +596,8 @@ function _distribute_shift(expr, shift)
596
(op isa Union{Pre, Initial, Sample, Hold}) && return expr
597
args = arguments(expr)
598
599
- if ModelingToolkit.isvariable(expr) && operation(expr) !== getindex
+ if ModelingToolkit.isvariable(expr) && operation(expr) !== getindex &&
600
+ !ModelingToolkit.iscalledparameter(expr)
601
(length(args) == 1 && isequal(shift.t, only(args))) ? (return shift(expr)) :
602
(return expr)
603
elseif op isa Shift
0 commit comments