Skip to content

Commit f614879

Browse files
fix: use vars instead of get_variables in Shift implementation
1 parent 018e2d6 commit f614879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/discretedomain.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function (xn::Num)(k::ShiftIndex)
231231
@unpack clock, steps = k
232232
x = value(xn)
233233
# Verify that the independent variables of k and x match and that the expression doesn't have multiple variables
234-
vars = Symbolics.get_variables(x)
234+
vars = ModelingToolkit.vars(x)
235235
if length(vars) != 1
236236
error("Cannot shift a multivariate expression $x. Either create a new unknown and shift this, or shift the individual variables in the expression.")
237237
end

0 commit comments

Comments
 (0)