[petsc-dev] get number of SNES iterations

Barry Smith bsmith at mcs.anl.gov
Wed Oct 25 10:03:42 CDT 2017


  Fixed in the manual page in master.
> On Oct 25, 2017, at 7:31 AM, Mark Adams <mfadams at lbl.gov> wrote:
> 
> OK, that is what I started using. The documentation used it inside of SNES. Was not clear to me that it would persist after the solve.
> Thanks,
> 
> On Wed, Oct 25, 2017 at 8:23 AM, Matthew Knepley <knepley at gmail.com> wrote:
> TSGetSNES()
> SNESGetIterationNumber()
> 
> Or do you want something else?
> 
>    Matt
> 
> On Wed, Oct 25, 2017 at 7:59 AM, Mark Adams <mfadams at lbl.gov> wrote:
> I want to modify the TS time step, in  a post-step function, and would like to get the number of Newton iterations that were used in the time step. I am not seeing how to get that. I see number of linear solver iterations. I'm sure I am missing something ...
> 
> 
> 
> -- 
> 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/
> 



More information about the petsc-dev mailing list