You can use -ksp_truemonitor for the true residual. I<br>
don't think we have something to output every N iterations,<br>
but adding a custom monitor is not that hard. You use<br>
KSPSetMonitor():<br>
<br>
<a href="http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPSetMonitor.html">http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPSetMonitor.html
</a><br>
<br>
Matt<br><br><div><span class="gmail_quote">On 3/16/06, <b class="gmail_sendername"><a href="mailto:abdul-rahman@tu-harburg.de">abdul-rahman@tu-harburg.de</a></b> <<a href="mailto:abdul-rahman@tu-harburg.de">abdul-rahman@tu-harburg.de
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br><br>Is there a simple way to control the output of residual monitor ?
i.e.,<br>instead of every iteration, can I output every N iterations to screen ?<br><br>As for the true residuals, can I store them? I know how to get the<br>preconditioned residuals. Seems to me the true residuals are in the vt2
<br>temp variable I saw in KSPInitialResidual.<br><br>Many thanks,<br><br>Razi<br><br></blockquote></div><br><br clear="all"><br>-- <br>"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec Guiness