<div dir="ltr"><div>If you are using the matrix-free method, the number of  function evaluations is way more  than 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:01 PM, Justin Chang <span dir="ltr"><<a href="mailto:jychang48@gmail.com" target="_blank">jychang48@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry forgot to hit reply all<br><br>On Monday, October 24, 2016, Justin Chang <<a href="mailto:jychang48@gmail.com" target="_blank">jychang48@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It depends on your SNES solver. A SNES iteration could involve more than one function evaluation (e.g., line searching). Also, -snes_monitor may say 3 iterations whereas -snes_view might indicate 4 function evaluations which could suggest that the first call was for computing the initial residual.<br></div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 24, 2016 at 2:22 PM, Gideon Simpson <span dir="ltr"><<a>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">I notice that if I use -snes_view,<br>
<br>
I see lines like:<br>
  total number of linear solver iterations=20<br>
  total number of function evaluations=5<br>
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.<br>
<span><font color="#888888"><br>
-gideon<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote>
</blockquote></div><br></div>