Skip to content

Commit

Permalink
simplify backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Sep 10, 2024
1 parent 49cf01f commit 9d1e68d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ struct ContinuousCallback{F1, F2, F3, F4, F5, T, T2, T3, T4, I, R} <:
interp_points, save_positions, dtrelax::R, abstol::T,
reltol::T2,
repeat_nudge::T3,
initializealg::T4) where {F1, F2, F3, F4, F5, T, T2, T3, T4, I, R
initializealg::T4 = nothing) where {F1, F2, F3, F4, F5, T, T2, T3, T4, I, R
}
_condition = prepare_function(condition)
new{typeof(_condition), F2, F3, F4, F5, T, T2, T3, T4, I, R}(_condition,
Expand Down Expand Up @@ -243,7 +243,7 @@ struct VectorContinuousCallback{F1, F2, F3, F4, F5, T, T2, T3, T4, I, R} <:
interp_points, save_positions, dtrelax::R,
abstol::T, reltol::T2,
repeat_nudge::T3,
initializealg::T4) where {F1, F2, F3, F4, F5, T, T2,
initializealg::T4 = nothing) where {F1, F2, F3, F4, F5, T, T2,
T3, T4, I, R}
_condition = prepare_function(condition)
new{typeof(_condition), F2, F3, F4, F5, T, T2, T3, T4, I, R}(_condition,
Expand Down Expand Up @@ -350,7 +350,7 @@ struct DiscreteCallback{F1, F2, F3, F4, F5} <: AbstractDiscreteCallback
function DiscreteCallback(condition::F1, affect!::F2,
initialize::F3, finalize::F4,
save_positions,
initializealg::F5) where {F1, F2, F3, F4, F5}
initializealg::F5 = nothing) where {F1, F2, F3, F4, F5}
_condition = prepare_function(condition)
new{typeof(_condition), F2, F3, F4, F5}(_condition,
affect!, initialize, finalize,
Expand Down

0 comments on commit 9d1e68d

Please sign in to comment.