Skip to content

Commit 601d60c

Browse files
Turn off DI strictness
1 parent 69f10db commit 601d60c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SimpleNonlinearSolve/src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ end
8787
function prepare_jacobian(prob, autodiff, fx, x)
8888
SciMLBase.has_jac(prob.f) && return AnalyticJacobian()
8989
if SciMLBase.isinplace(prob.f)
90-
return DIExtras(DI.prepare_jacobian(prob.f, fx, autodiff, x, Constant(prob.p)))
90+
return DIExtras(DI.prepare_jacobian(prob.f, fx, autodiff, x, Constant(prob.p), strict = Val(false)))
9191
else
9292
x isa SArray && return DINoPreparation()
93-
return DIExtras(DI.prepare_jacobian(prob.f, autodiff, x, Constant(prob.p)))
93+
return DIExtras(DI.prepare_jacobian(prob.f, autodiff, x, Constant(prob.p), strict = Val(false)))
9494
end
9595
end
9696

0 commit comments

Comments
 (0)