OrdinaryDiffEq
arguably uses the wrong DAE initializealg after callbacks.
#2143
Labels
OrdinaryDiffEq
arguably uses the wrong DAE initializealg after callbacks.
#2143
Describe the bug 馃悶
After hitting a callback,
dae
s are re-initialized with their initializealg (OrdinaryDiffEq.jl/src/integrators/integrator_interface.jl
Line 39 in 31d9157
BrownFullBasicInit
. This means that if the user is using a custom initializealg (orShampineColocationInit
), that initialization will be called after callbacks which is likely not desired. Note, however that fixing this correctly is somewhat difficult (hence the lack of a PR), because if the user is using a custom init for different reasons (e.g. turning off autodiff for initialization), we don't want to use the defaultBrownFullBasicInit
as doing so would try to use autodiff and potentially crash. The code below reproduces this (and the problem with the obvious fix)The text was updated successfully, but these errors were encountered: