<div class="gmail_quote">On Tue, Aug 28, 2012 at 12:25 PM, Thomas Witkowski <span dir="ltr"><<a href="mailto:thomas.witkowski@tu-dresden.de" target="_blank">thomas.witkowski@tu-dresden.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
      GMRES uses left preconditioning by default which forces the null space into the Krylov space at each iteration. FGMRES uses right preconditioning and doesn't  do anything to the null space because it is naturally in the Krylov space (since the result with fgmres contains the constants this is why I suspect the matrix actually doesn't have the null space you think it has). You can try running -ksp_type gmres -ksp_pc_side right      my guess is that you will not get near zero for the dot.<br>

</blockquote></div>
Any idea how to debug this problem? Lets concentrate on the gmres/no precon case first.</blockquote></div><br><div>Left preconditioning and anything using -pc_type none works correctly. It is only the case of right preconditioning that is incorrect (and needs to be fixed in PETSc).</div>