Hi, Hong and Jed,

Thanks a lot as usual.

Best wishes
Zhengyong

On Tue, Jun 5, 2012 at 8:01 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Tue, Jun 5, 2012 at 12:48 PM, RenZhengYong <renzhengyong at 
> gmail.com>wrote:
>
>> 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.
>>
>> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCMAT.html
>



-- 
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/3abe7d77/attachment.html>

Reply via email to