Skip to content

Commit a50b4de

Browse files
committed
compat
1 parent 2a075f9 commit a50b4de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/OrdinaryDiffEqDifferentiation/src/linsolve_utils.jl

+8
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ function dolinsolve(integrator, linsolve; A = nothing, linu = nothing, b = nothi
3737
return linres
3838
end
3939

40+
#for backward compat delete soon
41+
function wrapprecs(PL, PR, weight, u)
42+
Pl = _Pl === nothing ? SciMLOperators.IdentityOperator(length(u)) : _Pl
43+
return linsolver
44+
Pr = _Pr === nothing ? SciMLOperators.IdentityOperator(length(u)) : _Pr
45+
end
46+
Pl, Pr
47+
end
4048
function wrapprecs(linsolver, W, weight)
4149
if hasproperty(linsolver, :precs) && isnothing(linsolver.precs)
4250
Pl = LinearSolve.InvPreconditioner(Diagonal(_vec(weight)))

0 commit comments

Comments
 (0)