On Fri, Mar 26, 2010 at 3:16 PM, Andrea Hawkins <andjhawkins@...> wrote:
> Is there currently an easy way to get the number of newton iterations
> from a PETSc solve? I know PETSc used to return it as a value from
> SNESSolve, but newer versions require calling SNESGetIterationNumber.
> I would call this myself after the solve, but in the libMesh
> PetscNonlinearSolver<T>::solve routine it destroys the SNES object
> before I can get to the iteration count. I imagine this would be
> really easy to add to the library if there isn't a way around it...
Yeah, looks like there's currently no easy way. If you'd like to add
code somewhere after
to store the number of iterations, that would be great. Send us the
diffs and we'll check it in to the library.