<div class="gmail_quote">On Thu, Dec 22, 2011 at 10:18, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 In some cases after certain rows/columns have been removed due to active constraints certain OTHER rows end up being identically zero. This is some hacky code to remove those rows (since they screw up the linear solve). Just leave the code.</blockquote>
</div><br><div>No, it is *never* executed due to the if (0) statement! In addition to that code never being executed, the call to MatFindNonzeroRows() with unused return argument is an *unconditional* memory leak.</div>