[petsc-users] about the preconditioned GMRES

Hong Zhang hzhang at mcs.anl.gov
Tue Jun 5 12:56:51 CDT 2012


ZhengYong :

You may use  shell preconditioner for your own PC.
See ~petsc/src/ksp/ksp/examples/tutorials/ex15.c

Hong

Dear Petsc users,
>
> My purpose is to solve AmatX=b, A is a symmetric indefinite matrix.
> Here, I read the manual about the usage of preconditioned GMRES method:
> Given a matrix Pmat which is a good approximation to Amat, and call
>
> PetscErrorCode  KSPSetOperators(KSP ksp,Mat Amat,Mat Pmat,MatStructure flag).
>
> My question is: If I have an explicit good approximation (T) to the inverse of the Amat (that is T=Pmat^{_1}),
> which call will be used to tell the KSP of having this explicit preconditioner.
>
> Thanks in advance for your suggestions.
>
> Best wishes
> Zhengyong
>
>
>
> --
> Zhengyong Ren
> AUG Group, Institute of Geophysics
> Department of Geosciences, ETH Zurich
> NO H 47 Sonneggstrasse 5
> CH-8092, Zürich, Switzerland
> Tel: +41 44 633 37561
> e-mail: zhengyong.ren at aug.ig.erdw.ethz.ch
> Gmail: renzhengyong at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120605/fb20a1a9/attachment.html>


More information about the petsc-users mailing list