[petsc-users] petsc-users Digest, Vol 38, Issue 41
Jed Brown
jedbrown at mcs.anl.gov
Fri Feb 17 14:38:55 CST 2012
On Fri, Feb 17, 2012 at 14:09, <coco at dmi.unict.it> wrote:
> Indeed I would like to solve the whole linear system by a multigrid
> approach and not by a lu factorization. Therefore I would like to use
> -ksp_type richardson -pc_type mg.
> In this case, the preconditioned problem P^(-1) (f-A x^n) is solved
> exactly or it performs just a V-cycle iteration? In both cases, since I am
> using a one-grid multigrid (just for debugging), it should anyway provide
> the exact solution at the first iteration, but it is not so.
>
-pc_type mg with one level just applies a normal smoother. I've sometimes
thought it should do a coarse-level solve instead, but I haven't messed
with it. Barry, why doesn't it do a direct solve?
In general -pc_type mg does one multigrid cycle (usually a V or W cycle).
If you want to use multiple iterations, you can
-pc_type ksp -ksp_pc_type mg
which would use the default KSP (GMRES) as an iteration, preconditioned by
multigrid. The "outer" problem will see the result of this converged
iterative solve.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120217/f7a627da/attachment.htm>
More information about the petsc-users
mailing list