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.
vars
get_variables
Shift
1 parent 018e2d6 commit f614879Copy full SHA for f614879
src/discretedomain.jl
@@ -231,7 +231,7 @@ function (xn::Num)(k::ShiftIndex)
231
@unpack clock, steps = k
232
x = value(xn)
233
# 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)
+ vars = ModelingToolkit.vars(x)
235
if length(vars) != 1
236
error("Cannot shift a multivariate expression $x. Either create a new unknown and shift this, or shift the individual variables in the expression.")
237
end
0 commit comments