Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 2, 2024
1 parent 55e8ad6 commit 2bef546
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/systems/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,13 @@ SymbolicContinuousCallback(p::Pair) = SymbolicContinuousCallback(p[1], p[2])
SymbolicContinuousCallback(cb::SymbolicContinuousCallback) = cb # passthrough
function SymbolicContinuousCallback(eqs::Equation, affect = NULL_AFFECT;
affect_neg = affect, rootfind = SciMLBase.LeftRootFind)
SymbolicContinuousCallback(eqs=[eqs], affect=affect, affect_neg=affect_neg, rootfind=rootfind)
SymbolicContinuousCallback(
eqs = [eqs], affect = affect, affect_neg = affect_neg, rootfind = rootfind)
end
function SymbolicContinuousCallback(eqs::Vector{Equation}, affect = NULL_AFFECT;
affect_neg = affect, rootfind = SciMLBase.LeftRootFind)
SymbolicContinuousCallback(eqs=eqs, affect=affect, affect_neg=affect_neg, rootfind=rootfind)
SymbolicContinuousCallback(
eqs = eqs, affect = affect, affect_neg = affect_neg, rootfind = rootfind)
end

SymbolicContinuousCallbacks(cb::SymbolicContinuousCallback) = [cb]
Expand Down

0 comments on commit 2bef546

Please sign in to comment.