-
-
Notifications
You must be signed in to change notification settings - Fork 221
Attempt at ForwardDiff
Jacobian preparation when explicit Jacobian is provided yields error
#2671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not familiar enough with NonlinearSolve or OrdinaryDiffEq to decipher where there should be |
In this case though there shouldn't be |
It looks like this should be checked around here: |
Am I missing something or does this just set the bottom right hand corner of the Jacobian to be 1? function jac(J, u, p, t)
J .= 0
for i = 1:N
J[N, N] = 1
end
end did you mean J .= 0
for i = 1:N
J[i, i] = 1
end
end ? Regardless, it is strange that there are Dual numbers showing up here, let me take a look. |
Ah you're right, but the specifics of the ODE problem aren't relevant. |
Yeah, I don't think we have it set up to use the user provided @oscardssmith do you think this is something with a quick fix , like just putting the user OrdinaryDiffEq.jl/lib/OrdinaryDiffEqNonlinearSolve/src/utils.jl Lines 316 to 318 in 2239fc8
I'm not sure that the Jacobian for |
|
I isolated this M(N)WE:
Stack trace:
I presume this problem was introduced by #2567.
Ping @gdalle @jClugstor
The text was updated successfully, but these errors were encountered: