<div class="gmail_quote">On Mon, Feb 7, 2011 at 17:49, Peter Wang <span dir="ltr">&lt;<a href="mailto:pengxwang@hotmail.com">pengxwang@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>  If I need to run with option -ksp_monitor_true_residual -ksp_converged_reason , I should add some lines like: <br>
    call <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Sys/PetscOptionsHasName.html#PetscOptionsHasName" target="_blank">PetscOptionsHasName</a>()<br>
    call KSPGetConvergedReason()<br>
 Am I right?</div></blockquote></div><br><div>This is insane, just be sure to call KSPSetFromOptions() and then all the options will work.</div>