File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -366,17 +366,11 @@ function handle_callbacks!(integrator)
366
366
savevalues! (integrator)
367
367
end
368
368
369
- integrator. u_modified = continuous_modified || discrete_modified
370
- if integrator. u_modified
371
- handle_callback_modifiers! (integrator)
372
- end
369
+ integrator. u_modified = continuous_modified | discrete_modified
370
+ integrator. reeval_fsal && handle_callback_modifiers! (integrator) # Hook for DDEs to add discontinuities
373
371
nothing
374
372
end
375
373
376
- function handle_callback_modifiers! (integrator:: ODEIntegrator )
377
- integrator. reeval_fsal = true
378
- end
379
-
380
374
function update_uprev! (integrator)
381
375
if alg_extrapolates (integrator. alg)
382
376
if isinplace (integrator. sol. prob)
@@ -515,7 +509,7 @@ function reset_fsal!(integrator)
515
509
integrator. fsalfirst = integrator. f (integrator. u, integrator. p, integrator. t)
516
510
end
517
511
end
518
-
512
+
519
513
# Do not set false here so it can be checked in the algorithm
520
514
# integrator.reeval_fsal = false
521
515
end
You can’t perform that action at this time.
0 commit comments