Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Feb 16, 2024
1 parent 396bde8 commit 8a2da2a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/integrators/integrator_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -366,17 +366,11 @@ function handle_callbacks!(integrator)
savevalues!(integrator)
end

integrator.u_modified = continuous_modified || discrete_modified
if integrator.u_modified
handle_callback_modifiers!(integrator)
end
integrator.u_modified = continuous_modified | discrete_modified
integrator.reeval_fsal && handle_callback_modifiers!(integrator) # Hook for DDEs to add discontinuities
nothing
end

function handle_callback_modifiers!(integrator::ODEIntegrator)
integrator.reeval_fsal = true
end

function update_uprev!(integrator)
if alg_extrapolates(integrator.alg)
if isinplace(integrator.sol.prob)
Expand Down Expand Up @@ -515,7 +509,7 @@ function reset_fsal!(integrator)
integrator.fsalfirst = integrator.f(integrator.u, integrator.p, integrator.t)
end
end

# Do not set false here so it can be checked in the algorithm
# integrator.reeval_fsal = false
end
Expand Down

0 comments on commit 8a2da2a

Please sign in to comment.