SciML / DelayDiffEq.jl

Delay differential equation (DDE) solvers in Julia for the SciML scientific machine learning ecosystem. Covers neutral and retarded delay differential equations, and differential-algebraic equations.
Other
59 stars 26 forks source link

Handle empty solution in `HistoryFunction` correctly #290

Closed devmotion closed 5 months ago

devmotion commented 5 months ago

I ran into a weird issue in some private downstream code which ultimately I think points to a problem in the downstream code. However, even though I wasn't able to reproduce the problem with DelayDiffEq alone, I think we should fix the definition of the HistoryFunction: Currently, it performs unsafe indexing that is even annotated with @inbounds 😕