Skip to content

Commit d73e1e1

Browse files
committed
another spzeros
1 parent 17d656a commit d73e1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OrdinaryDiffEqDifferentiation/src/derivative_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ function build_J_W(alg, u, uprev, p, t, dt, f::F, jac_config, ::Type{uEltypeNoUn
767767
!isnothing(jac_config) ?
768768
convert.(
769769
eltype(u), SparseMatrixColorings.sparsity_pattern(jac_config[1])) :
770-
sparse(ArrayInterface.undefmatrix(u))
770+
spzeros(length(u), length(u))
771771
elseif eltype(f.sparsity) == Bool
772772
convert.(eltype(u), f.sparsity)
773773
else

0 commit comments

Comments
 (0)