Open Roger-luo opened 2 years ago
AutoTsit5(Rosenbrock23(autodiff=false))
does that work?
yes, @ChrisRackauckas that works! I'm not sure what's the difference with or without AD tho?
Not much. In some very numerically ill-conditioned problems it can matter, but most tests show little performance difference. It's really just a safety difference.
I ran into this problem by using the
AutoTsit5(Rosenbrock23())
on shordinger function (an equation that has a complex valued state), basically it seems the following linehttps://github.com/JuliaDiff/SparseDiffTools.jl/blob/fb09091c195311ab622ced4889694e889631c980/src/differentiation/compute_jacobian_ad.jl#L29
won't run if
x
is complex-valued. I'm not sure how should this be generalized however...