<div class="gmail_quote">On Wed, Jan 11, 2012 at 09:16, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com">knepley@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>MatSetOption(A, <span style="background-color:rgb(255,255,255)">MAT_NEW_NONZERO_ALLOCATION_ERR, PETSC_TRUE);</span></div>
<div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)"><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatSetOption.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatSetOption.html</a></span></div>
</blockquote></div><div><br></div><div>If MatSetFromOptions() is called, these options can be used</div><br><div><div>-mat_new_nonzero_allocation_err</div></div><div>-mat_new_nonzero_location_err</div>