Skip to content

Commit 204e816

Browse files
authored
Update callbacks.jl
typo
1 parent 3f2cc90 commit 204e816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/callbacks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function compile_affect(eqs::Vector{Equation}, sys, dvs, ps; outputidxs = nothin
304304
lhss = map(x -> x.lhs, eqs)
305305
all(isvariable, lhss) ||
306306
error("Non-variable symbolic expression found on the left hand side of an affect equation. Such equations must be of the form variable ~ symbolic expression for the new value of the variable.")
307-
update_vars = collect(Iterators.flatten(map(ModelingToolkit.vars, lhss))) # these are the ones we're chaning
307+
update_vars = collect(Iterators.flatten(map(ModelingToolkit.vars, lhss))) # these are the ones we're changing
308308
length(update_vars) == length(unique(update_vars)) == length(eqs) ||
309309
error("affected variables not unique, each state can only be affected by one equation for a single `root_eqs => affects` pair.")
310310
alleq = all(isequal(isparameter(first(update_vars))),
@@ -497,4 +497,4 @@ function process_events(sys; callback = nothing, has_difference = false, kwargs.
497497
# cb = merge_cb(cb, callback)
498498
# @show typeof(cbs),cbs
499499
cb
500-
end
500+
end

0 commit comments

Comments
 (0)