Skip to content

Commit

Permalink
Merge pull request #1098 from SciML/ChrisRackauckas-patch-6
Browse files Browse the repository at this point in the history
Remove other hasmethod from callbacks
  • Loading branch information
ChrisRackauckas authored Oct 21, 2024
2 parents 4d038ce + 21f51c5 commit bb488d1
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 bb488d1

Please sign in to comment.