Skip to content

Commit 948ef56

Browse files
fix: pass strict = Val(false) to DI.prepare_jacobian
1 parent 0c9a31b commit 948ef56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/linearization.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ struct PreparedJacobian{iip, P, F, B, A}
174174
end
175175

176176
function PreparedJacobian{true}(f, buf, autodiff, args...)
177-
prep = DI.prepare_jacobian(f, buf, autodiff, args...)
177+
prep = DI.prepare_jacobian(f, buf, autodiff, args...; strict = Val(false))
178178
return PreparedJacobian{true, typeof(prep), typeof(f), typeof(buf), typeof(autodiff)}(
179179
prep, f, buf, autodiff)
180180
end
181181

182182
function PreparedJacobian{false}(f, autodiff, args...)
183-
prep = DI.prepare_jacobian(f, autodiff, args...)
183+
prep = DI.prepare_jacobian(f, autodiff, args...; strict = Val(false))
184184
return PreparedJacobian{true, typeof(prep), typeof(f), Nothing, typeof(autodiff)}(
185185
prep, f, nothing)
186186
end

0 commit comments

Comments
 (0)