[petsc-users] checking whether a ksp type wants definite matrices

Jed Brown jedbrown at mcs.anl.gov
Tue Feb 19 18:04:21 CST 2013


In addition to the CG family, MINRES requires an SPD preconditioner. There
is not currently a way to query this, but it would also be helpful
documentation for users. Right now, it's (sometimes) scattered around man
pages.


On Tue, Feb 19, 2013 at 5:39 PM, Geoffrey Irving <irving at naml.us> wrote:

> Currently I have a command line option that controls whether my force
> classes perform definiteness projection, which is necessary for CG and
> unnecessary for GMRES, etc.  It would be nice to automatically turn on
> definiteness if I notice that the petsc ksp type is cg.
>
> Is CG the only KSP that requires definiteness?  If not, is there a
> standard way of checking whether KSP object or type supports
> indefinite matrices?
>
> Thanks,
> Geoffrey
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130219/884acc81/attachment.html>


More information about the petsc-users mailing list