Skip to content

Commit 8747976

Browse files
fix: perform toterm in Initial for Shifted variables
1 parent 9b69e0d commit 8747976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ function (f::Initial)(x)
503503
return x
504504
end
505505
# differential variables are default-toterm-ed
506-
if iscall(x) && operation(x) isa Differential
506+
if iscall(x) && operation(x) isa Union{Differential, Shift}
507507
x = default_toterm(x)
508508
end
509509
# don't double wrap

0 commit comments

Comments
 (0)