[petsc-users] checking max iteration reached

Matthew Knepley knepley at gmail.com
Fri Jan 17 13:09:51 CST 2020


You want
https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/KSP/KSPGetConvergedReason.html

  Thanks,

    Matt

On Fri, Jan 17, 2020 at 1:48 PM Sam Guo <sam.guo at cd-adapco.com> wrote:

> Dear PETSc dev team,
>    How to check if the max iterations have been reached? I notice there is
> PETSC_ERR_NOT_CONVERGED but I am not sure if this error is issued for max
> iterations reached or not.
>    If yes, how to tell if the max iterations have been reached since this
> error can be issued for many other reasons.
>    If not, should I check the number of iterations myself?
>
> Thanks,
> Sam
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200117/11092806/attachment.html>


More information about the petsc-users mailing list