[petsc-users] Print ||r(i)||/||Ax0-b|| while monitoring

Matthew Knepley knepley at gmail.com
Thu Oct 27 08:50:43 CDT 2011


On Thu, Oct 27, 2011 at 1:15 PM, Dominik Szczerba <dominik at itis.ethz.ch>wrote:

> Is there an equivalent of -ksp_monitor_true_residual to get
>
> ||r(i)||/||Ax0-b||   (x0 initial guess)
>
> instead of
>
> ||r(i)||/||b||
>
> ?
>

You can easily make a custom monitor that does what you want. The code for
the
original is in src/ksp/ksp/interface/iterativ.c

   Matt


> Many thanks,
> Dominik
>



-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111027/77cef4d1/attachment.htm>


More information about the petsc-users mailing list