<div class="gmail_quote">On Wed, Jul 25, 2012 at 4:42 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>2) You can always check the return value of KSPSolve() and do what you did last time.</div>
<div></div></blockquote></div><br><div>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?)</div><div><br></div><div>
Erroring by default is the right behavior, but I don't think it should be the only behavior.</div>