Skip to content

Commit 76ac8f1

Browse files
committed
Make \ call ldiv!
1 parent df9db80 commit 76ac8f1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/preconditioner.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ else
3232
end
3333

3434
function \(p::Preconditioner, b)
35-
if p.init == :zero
36-
x = zeros(b)
37-
else
38-
x = copy(b)
39-
end
40-
solve!(x, p.ml, b)
35+
ldiv!(similar(b), p, b)
4136
end
4237
*(p::Preconditioner, b) = p.ml.levels[1].A * x

0 commit comments

Comments
 (0)