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.
substitute
1 parent 3ad212a commit 9a3edfeCopy full SHA for 9a3edfe
src/systems/abstractsystem.jl
@@ -2113,6 +2113,10 @@ end
2113
2114
keytype(::Type{<:Pair{T, V}}) where {T, V} = T
2115
function Symbolics.substitute(sys::AbstractSystem, rules::Union{Vector{<:Pair}, Dict})
2116
+ if has_continuous_domain(sys) && get_continuous_events(sys) !== nothing ||
2117
+ has_discrete_events(sys) && get_discrete_events(sys) !== nothing
2118
+ @warn "`substitute` only supports performing substitutions in equations. This system has events, which will not be updated."
2119
+ end
2120
if keytype(eltype(rules)) <: Symbol
2121
dict = todict(rules)
2122
systems = get_systems(sys)
0 commit comments