[petsc-users] question

Kong, Fande fande.kong at inl.gov
Mon Oct 24 15:17:41 CDT 2016


Using     -snes_linesearch_type  basic to turn off the line search, you
will see that the number of function evaluations is the same as the number
of Newton iterations.

Fande,

On Mon, Oct 24, 2016 at 2:13 PM, Gideon Simpson <gideon.simpson at gmail.com>
wrote:

> I just mean that if I were working a Newton iteration by hand, i.e.,
>
> x_{n+1} = x_n - J^{-1} F(x_n),
>
> I’d be able to count the number of Newton iterations.  I’m trying to see
> how that count would relate to the numbers reported by snes_view.  I’m
> guessing that -snes_monitor is giving a more consistent count of this?
>
>
> -gideon
>
> On Oct 24, 2016, at 4:11 PM, Jed Brown <jed at jedbrown.org> wrote:
>
> Gideon Simpson <gideon.simpson at gmail.com> writes:
>
> Ok, so if I’m doing the default Newton Line Search, how would I interpret
> the 5 and the 20, vis a vis what I would be doing with pencil and paper?
>
>
> I don't know what you're doing with pencil and paper.  It's just
> counting the number of residual evaluations and solver iterations
> (Jacobian and preconditioner application).  Use -snes_monitor
> -snes_linesearch_monitor -ksp_monitor for the details.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20161024/c7c8030e/attachment.html>


More information about the petsc-users mailing list