Re: [petsc-dev] get number of SNES iterations

2017-10-25 Thread Barry Smith

  Fixed in the manual page in master.
> On Oct 25, 2017, at 7:31 AM, Mark Adams  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  wrote:
> TSGetSNES()
> SNESGetIterationNumber()
> 
> Or do you want something else?
> 
>Matt
> 
> On Wed, Oct 25, 2017 at 7:59 AM, Mark Adams  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/
> 



Re: [petsc-dev] get number of SNES iterations

2017-10-25 Thread Mark Adams
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  wrote:

> TSGetSNES()
> SNESGetIterationNumber()
>
> Or do you want something else?
>
>Matt
>
> On Wed, Oct 25, 2017 at 7:59 AM, Mark Adams  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/ 
>


Re: [petsc-dev] get number of SNES iterations

2017-10-25 Thread Matthew Knepley
TSGetSNES()
SNESGetIterationNumber()

Or do you want something else?

   Matt

On Wed, Oct 25, 2017 at 7:59 AM, Mark Adams  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/