Skip to content

Commit 6dbbe22

Browse files
committed
[docs] Update AMG in docs.
1 parent fec67bd commit 6dbbe22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/examples.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ history
236236

237237
# Now solve the system while using an AMG preconditioner.
238238

239-
using PartitionedSolvers: amg, preconditioner
239+
using PartitionedSolvers
240240

241241
x .= 0
242-
Pl = preconditioner(amg(),x,A,b)
242+
Pl = setup(amg(),x,A,b)
243243
_, history = IterativeSolvers.cg!(x,A,b;Pl,log=true)
244244
history
245245

0 commit comments

Comments
 (0)