[petsc-users] KSP no longer returning NaNs?

Jed Brown jedbrown at mcs.anl.gov
Wed Jul 25 16:51:30 CDT 2012

On Wed, Jul 25, 2012 at 4:42 PM, Matthew Knepley <knepley at gmail.com> wrote:

> 2) You can always check the return value of KSPSolve() and do what you did
> last time.

Well, PetscError is called, which is not great. I think it should be able
to clean up and return with a KSP_DIVERGED_NAN. (Why else would that enum
be there?)

Erroring by default is the right behavior, but I don't think it should be
the only behavior.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120725/e576cd41/attachment.html>

More information about the petsc-users mailing list