[petsc-dev] get number of SNES iterations

Mark Adams mfadams at lbl.gov
Wed Oct 25 07:31:01 CDT 2017


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/ <http://www.caam.rice.edu/~mk51/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20171025/42d0dbf8/attachment.html>


More information about the petsc-dev mailing list