Re: [petsc-users] checking max iteration reached

2020-01-17 Thread Matthew Knepley
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  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/ 


[petsc-users] checking max iteration reached

2020-01-17 Thread Sam Guo
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