[petsc-users] diagonal preconditioner?
Barry Smith
bsmith at mcs.anl.gov
Wed Dec 30 16:12:32 CST 2009
PCJACOBI supports the following options: -pc_jacobi_rowmax /
PCJacobiSetUseRowMax() or -pc_jacobi_rowsum / PCJacobiSetUseRowSum() or
-pc_jacobi_abs / PCJacobiSetUseAbs() or the default of just using the
diagonal entry.
If you want to use some other diagonal matrix to build the
preconditioner then pass the diagonal matrix as the second matrix to
KSPSetOperators() or SNESSetJacobian() and use Jacobi preconditioning
with that matrix.
Barry
On Dec 30, 2009, at 3:58 PM, Dominik Szczerba wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Does Petsc implement a diagonal preconditioner? The simplest I can see
> is Jacobi...
>
> Dominik
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAks7zPoACgkQ/EBMh9bUuzL9LQCgnnIX6BiF0rYT70JjFxIZGfKB
> y7AAmgOH3Fbh93UEEs/UOCaX743ruDem
> =vUgf
> -----END PGP SIGNATURE-----
More information about the petsc-users
mailing list