Skip to content

Commit c6c75ae

Browse files
committed
rename default_preconditioner to scaling_preconditioner
1 parent 238c1fe commit c6c75ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/common.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function SciMLBase.init(prob::LinearProblem, alg::Union{SciMLLinearSolveAlgorith
6060
reltol=eps(eltype(prob.A)),
6161
maxiters=length(prob.b),
6262
verbose=false,
63-
preconditioner_scale=one(eltype(prob.A)),
63+
scale=one(eltype(prob.A)),
6464
kwargs...,
6565
)
6666
@unpack A, b, u0, p = prob
@@ -71,8 +71,8 @@ function SciMLBase.init(prob::LinearProblem, alg::Union{SciMLLinearSolveAlgorith
7171
isfresh = cacheval === nothing
7272
Tc = isfresh ? Any : typeof(cacheval)
7373

74-
Pl = default_preconditioner(preconditioner_scale, true)
75-
Pr = default_preconditioner(preconditioner_scale, false)
74+
Pl = scaling_preconditioner(scale, true)
75+
Pr = scaling_preconditioner(scale, false)
7676

7777
A = alias_A ? A : deepcopy(A)
7878
b = alias_b ? b : deepcopy(b)

src/wrappers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
## Preconditioners
33

4-
default_preconditioner(s, isleft) = isleft ? I * s : I * (1/s)
4+
scaling_preconditioner(s, isleft) = isleft ? I * s : I * (1/s)
55

66
struct ComposePreconditioner{Ti,To}
77
inner::Ti

0 commit comments

Comments
 (0)