[petsc-users] Petsc with ML and ILU

Jed Brown jed at jedbrown.org
Fri May 2 09:46:35 CDT 2014

Lucie Freret <lfreret at arrow.utias.utoronto.ca> writes:

> Hello,
> I would like to solve linear systems using Gmres preconditioned by ML  
> and use ILU(0) on all levels (mg_coarse and mg_levels_x).
> As I have MATMPIAIJ matrix, I'm using
> -ksp_type gmres
> -pc_type ml
> -mg_levels_ksp_type preonly (-mg_coarse_ksp_type preonly)

This should be -mg_levels_ksp_type richardson (the default when using
ML), which will compute a residual as necessary before applying the
preconditioner.  Note that this may need damping, or you could use
-mg_levels_ksp_type chebyshev to compute a spectral estimate to combine
damping and targeting a range of the spectrum.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140502/252e7bbf/attachment.pgp>

More information about the petsc-users mailing list