<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I just mean that if I were working a Newton iteration by hand, i.e.,<div class=""><br class=""></div><div class="">x_{n+1} = x_n - J^{-1} F(x_n),</div><div class=""><br class=""></div><div class="">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><div class=""><br class=""></div><div class=""><br class=""><div class="">
<span class="Apple-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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">-gideon</span>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Oct 24, 2016, at 4:11 PM, Jed Brown <<a href="mailto:jed@jedbrown.org" class="">jed@jedbrown.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Gideon Simpson <<a href="mailto:gideon.simpson@gmail.com" class="">gideon.simpson@gmail.com</a>> writes:<br class=""><br class=""><blockquote type="cite" class="">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 class=""></blockquote><br class="">I don't know what you're doing with pencil and paper. It's just<br class="">counting the number of residual evaluations and solver iterations<br class="">(Jacobian and preconditioner application). Use -snes_monitor<br class="">-snes_linesearch_monitor -ksp_monitor for the details.<br class=""></div></div></blockquote></div><br class=""></div></body></html>