[petsc-users] on the performance of MPI PETSc

Jed Brown jed at jedbrown.org
Fri Jun 5 12:08:23 CDT 2015


"Sun, Hui" <hus003 at ucsd.edu> writes:

> Thank you Jed. I see. 
>
> I have another question: Petsc uses multigrid as a preconditioner. How do I specify the option so that it becomes a solver? Is it by doing:
> ./ex34 -pc_type mg -pc_mg_type full -ksp_type richardson -ksp_monitor_short -pc_mg_levels 3 -mg_coarse_pc_factor_shift_type nonzero

Yes.

> MG as preconditioner or as solver, which one gives better performance and why? 

FMG done right is a direct solver (one iteration).  Otherwise, Krylov
usually provides enough benefit to justify its modest cost, but it all
depends on what is slowing convergence.

Hammer or wrench, which is more useful and why?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150605/b8f6201b/attachment.pgp>


More information about the petsc-users mailing list