Skip to content

Commit

Permalink
Remove other hasmethod from callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Oct 20, 2024
1 parent 4d038ce commit 21f51c5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -614,13 +614,8 @@ end
integrator.u_modified = true
callback.affect!(integrator)
if integrator.u_modified
if hasmethod(reeval_internals_due_to_modification!,
Tuple{typeof(integrator), Bool}, (:callback_initializealg,))
reeval_internals_due_to_modification!(
integrator, false, callback_initializealg = callback.initializealg)
else # handle legacy dispatch without kwarg
reeval_internals_due_to_modification!(integrator, false)
end
reeval_internals_due_to_modification!(
integrator, false, callback_initializealg = callback.initializealg)
end
@inbounds if callback.save_positions[2]
savevalues!(integrator, true)
Expand Down

0 comments on commit 21f51c5

Please sign in to comment.