<div class="gmail_quote">On Tue, Apr 26, 2011 at 13:50, Nathan Collier <span dir="ltr"><<a href="mailto:nathaniel.collier@gmail.com">nathaniel.collier@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":3gv"> When I have this monitor function registered, my H1<br>
norm diverges while the KSP residual converges. Also, I compute the<br>
final H1 norm (outside of the monitor) and it is divergent, which<br>
matches the last iteration. If I remove my monitor function, things<br>
work well.</div></blockquote></div><br><div>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?</div>