[petsc-users] question

Jed Brown jed at jedbrown.org
Mon Oct 24 14:59:03 CDT 2016


Gideon Simpson <gideon.simpson at gmail.com> writes:

> I notice that if I use -snes_view,
>
> I see lines like:
>   total number of linear solver iterations=20
>   total number of function evaluations=5
> Just to clarify, the number of "function evaluations" corresponds to the number of Newton (or Newton like) steps, and the total "number of linear solver iterations” is the total number of iterations needed to solve the linear problem at each Newton iteration.  Is that correct?  So in the above, there are 5 steps of Newton and a total of 20 iterations of the linear solver across all 5 Newton steps.

Usually there is one final residual evaluation to declare convergence.

Also, if you activated a line search, the residual would have been
evaluated more than once per Newton step.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20161024/ce8c3bcd/attachment.pgp>


More information about the petsc-users mailing list