ERROR: BoundsError: attempt to access 0-element Vector{ForwardDiff.Dual{...} at index [1]
when using ForwardDiff with a DAE
#3634
Labels
bug
Something isn't working
Describe the bug 🐞
I'm seeing a bounds error from inside initialization when trying to differentiate a DAE solve with ForwardDiff.
The MWE below is not super minimal because of the MTKNN dependency, but I'm not yet able to get a MWE on a simpler system. I'll try to simplify this more and update the issue.
Expected behavior
No errors.
Minimal Reproducible Example 👇
Without MRE, we would only be able to help you to a limited extent, and attention to the issue would be limited. to know more about MRE refer to wikipedia and stackoverflow.
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: