<div dir="ltr"><div>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.<br><br></div>Fande,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 24, 2016 at 2:13 PM, Gideon Simpson <span dir="ltr"><<a href="mailto:gideon.simpson@gmail.com" target="_blank">gideon.simpson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I just mean that if I were working a Newton iteration by hand, i.e.,<div><br></div><div>x_{n+1} = x_n - J^{-1} F(x_n),</div><div><br></div><div>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?</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="HOEnZb"><font color="#888888"><br><div>
<span class="m_6330156185053701666Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">-gideon</span>

</div></font></span><div><div class="h5">
<br><div><blockquote type="cite"><div>On Oct 24, 2016, at 4:11 PM, Jed Brown <<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>> wrote:</div><br class="m_6330156185053701666Apple-interchange-newline"><div><div>Gideon Simpson <<a href="mailto:gideon.simpson@gmail.com" target="_blank">gideon.simpson@gmail.com</a>> writes:<br><br><blockquote type="cite">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?<br></blockquote><br>I don't know what you're doing with pencil and paper.  It's just<br>counting the number of residual evaluations and solver iterations<br>(Jacobian and preconditioner application).  Use -snes_monitor<br>-snes_linesearch_monitor -ksp_monitor for the details.<br></div></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>