Skip to content

Commit

Permalink
compat
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Sep 17, 2024
1 parent ae7ee2c commit a40f222
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/OrdinaryDiffEqDifferentiation/src/linsolve_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ function dolinsolve(integrator, linsolve; A = nothing, linu = nothing, b = nothi
return linres
end

#for backward compat delete soon
function wrapprecs(PL, PR, weight, u)
Pl = _Pl === nothing ? SciMLOperators.IdentityOperator(length(u)) : _Pl
return linsolver
Pr = _Pr === nothing ? SciMLOperators.IdentityOperator(length(u)) : _Pr
end
Pl, Pr
end
function wrapprecs(linsolver, W, weight)
if hasproperty(linsolver, :precs) && isnothing(linsolver.precs)
Pl = LinearSolve.InvPreconditioner(Diagonal(_vec(weight)))
Expand Down

0 comments on commit a40f222

Please sign in to comment.