<div class="gmail_quote">On Tue, Apr 3, 2012 at 07:21, Mark F. Adams <span dir="ltr">&lt;<a href="mailto:mark.adams@columbia.edu">mark.adams@columbia.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I&#39;ve added the appended code to get the null space from the Mat.  I did not see:</div><div><br></div><div> ierr = MatNullSpaceDestroy(&amp;matnull);CHKERRQ(ierr);</div><div><br></div><div>in your ML code ... shouldn&#39;t that be here?</div>
</blockquote></div><br><div>MatGetNearNullSpace() is a lightweight accessor, it doesn&#39;t increment the reference count and you don&#39;t have to restore it.</div>