[petsc-dev] KSP monitor

Jed Brown jed at 59A2.org
Tue Apr 26 07:11:01 CDT 2011


On Tue, Apr 26, 2011 at 13:50, Nathan Collier
<nathaniel.collier at gmail.com>wrote:

> When I have this monitor function registered, my H1
> norm diverges while the KSP residual converges. Also, I compute the
> final H1 norm (outside of the monitor) and it is divergent, which
> matches the last iteration. If I remove my monitor function, things
> work well.
>

Is your monitor forgetting to zero some internal variable? What happens if
you just call your monitor twice with the same arguments? Also, does
-ksp_monitor_true_residual change anything?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110426/349970d5/attachment.html>


More information about the petsc-dev mailing list