We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66797d3 commit 5a2f915Copy full SHA for 5a2f915
lib/NonlinearSolveBase/src/wrappers.jl
@@ -101,11 +101,8 @@ function construct_extension_jac(
101
J_no_scalar = can_handle_scalar isa Val{false} && prob.u0 isa Number ?
102
@closure(u->[Jₚ(u[1])]) : Jₚ
103
104
- J_final = if can_handle_oop isa Val{false} && !SciMLBase.isinplace(prob)
105
- @closure((J, u)->copyto!(J, J_no_scalar(u)))
106
- else
107
- J_no_scalar
108
- end
+ J_final(J, u) = copyto!(J, J_no_scalar(u))
+ J_final(u) = J_no_scalar(u)
109
110
initial_jacobian isa Val{false} && return J_final
111
0 commit comments