You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iv =nothing, alg_eqs::Vector{Equation}= Equation[], warn_no_algebraic =true, kwargs...)
263
269
isempty(affect) &&returnnothing
264
-
isempty(alg_eqs) && warn_no_algebraic &&
265
-
@warn"No algebraic equations were found for the callback defined by $(join(affect, ", ")). If the system has no algebraic equations, this can be disregarded. Otherwise pass in `alg_eqs` to the SymbolicContinuousCallback constructor."
266
270
ifisnothing(iv)
267
271
iv = t_nounits
268
272
@warn"No independent variable specified. Defaulting to t_nounits."
@@ -304,7 +308,7 @@ function make_affect(affect::Vector{Equation}; discrete_parameters = Any[],
304
308
@named affectsys =ImplicitDiscreteSystem(
305
309
vcat(affect, alg_eqs), iv, collect(union(_dvs, discretes)),
- eqs::Vector{Symbolic} - events trigger when the condition evaluates to true
416
420
417
421
Arguments:
418
-
- iv: The independent variable of the system. This must be specified if the independent variable appaers in one of the equations explicitly, as in x ~ t + 1.
422
+
- iv: The independent variable of the system. This must be specified if the independent variable appears in one of the equations explicitly, as in x ~ t + 1.
419
423
- alg_eqs: Algebraic equations of the system that must be satisfied after the callback occurs.
Copy file name to clipboardExpand all lines: src/systems/discrete_system/implicit_discrete_system.jl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -299,7 +299,7 @@ function shift_u0map_forward(sys::ImplicitDiscreteSystem, u0map, defs)
299
299
v = u0map[k]
300
300
if!((op =operation(k)) isa Shift)
301
301
isnothing(getunshifted(k)) &&
302
-
@warn"Initial condition given in term of current state of the unknown. If `build_initializeprob = false`, this may be overriden by the implicit discrete solver."
302
+
@warn"Initial condition given in term of current state of the unknown. If `build_initializeprob = false`, this may be overridden by the implicit discrete solver."
0 commit comments