Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/LinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,15 @@ include("solve_function.jl")
include("default.jl")
include("init.jl")
include("adjoint.jl")
include("deprecated.jl")

## Deprecated, remove in July 2025

@static if isdefined(SciMLBase, :DiffEqArrayOperator)
function defaultalg(A::SciMLBase.DiffEqArrayOperator, b,
assump::OperatorAssumptions{Bool})
defaultalg(A.A, b, assump)
end
end

@inline function _notsuccessful(F::LinearAlgebra.QRCompactWY)
(m, n) = size(F)
Expand Down
2 changes: 1 addition & 1 deletion src/default.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end
# For SciML algorithms already using `defaultalg`, all assume square matrix.
defaultalg(A, b) = defaultalg(A, b, OperatorAssumptions(true))

function defaultalg(A::Union{DiffEqArrayOperator, MatrixOperator}, b,
function defaultalg(A::MatrixOperator, b,
assump::OperatorAssumptions{Bool})
defaultalg(A.A, b, assump)
end
Expand Down
85 changes: 0 additions & 85 deletions src/deprecated.jl

This file was deleted.

8 changes: 4 additions & 4 deletions test/pardiso/pardiso.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ prob = LinearProblem(copy(A), copy(b1))

linsolve = init(prob, UMFPACKFactorization())
sol11 = solve!(linsolve)
linsolve = LinearSolve.set_b(sol11.cache, copy(b2))
linsolve.b = copy(b2)
sol12 = solve!(linsolve)
linsolve = LinearSolve.set_A(sol12.cache, copy(A2))
linsolve.A = copy(A2)
sol13 = solve!(linsolve)

for alg in algs
linsolve = init(prob, alg)
sol31 = solve!(linsolve)
linsolve = LinearSolve.set_b(sol31.cache, copy(b2))
linsolve.b = copy(b2)
sol32 = solve!(linsolve)
linsolve = LinearSolve.set_A(sol32.cache, copy(A2))
linsolve.A = copy(A2)
sol33 = solve!(linsolve)
@test sol11.u ≈ sol31.u
@test sol12.u ≈ sol32.u
Expand Down
Loading