diff --git a/lib/OrdinaryDiffEqDifferentiation/src/linsolve_utils.jl b/lib/OrdinaryDiffEqDifferentiation/src/linsolve_utils.jl index 4e77d66fc9..82482a530a 100644 --- a/lib/OrdinaryDiffEqDifferentiation/src/linsolve_utils.jl +++ b/lib/OrdinaryDiffEqDifferentiation/src/linsolve_utils.jl @@ -38,9 +38,6 @@ function dolinsolve(integrator, linsolve; A = nothing, linu = nothing, b = nothi end function wrapprecs(linsolver, W, weight) - if isnothing(linsolver) - linsolver = LinearSolve.LUFactorization() - end if hasproperty(linsolver, :precs) && isnothing(linsolver.precs) Pl = LinearSolve.InvPreconditioner(Diagonal(_vec(weight))) Pr = Diagonal(_vec(weight))