Skip to content

Commit

Permalink
FIx SCC reconstruction
Browse files Browse the repository at this point in the history
  • Loading branch information
BenChung committed Aug 3, 2024
1 parent d6c0cd9 commit 8640378
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/systems/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,15 @@ end

namespace_affects(af::Vector, s) = Equation[namespace_affect(a, s) for a in af]
namespace_affects(af::FunctionalAffect, s) = namespace_affect(af, s)
namespace_affects(af::MutatingFunctionalAffect, s) = namespace_affect(af, s)
namespace_affects(::Nothing, s) = nothing

function namespace_callback(cb::SymbolicContinuousCallback, s)::SymbolicContinuousCallback
SymbolicContinuousCallback(
namespace_equation.(equations(cb), (s,)),
namespace_affects(affects(cb), s),
namespace_affects(affect_negs(cb), s))
SymbolicContinuousCallback(;
eqs = namespace_equation.(equations(cb), (s,)),
affect = namespace_affects(affects(cb), s),
affect_neg = namespace_affects(affect_negs(cb), s),
rootfind = cb.rootfind)
end

"""
Expand Down

0 comments on commit 8640378

Please sign in to comment.