<p>Sure users can turn off the allocation error if they intended to allocate approximately.</p>
<p>Only concern is if allocation is only wrong in the extreme case of a huge job.</p>
<div class="gmail_quote">On Jan 11, 2012 10:52 PM, "Barry Smith" <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><br></div> If the user calls an memory allocation routine should we tell them IN THEIR FACE if they did not allocate enough?<div><br></div><div>1) For example, automatically set the error on allocation option? or<br>
<div><br></div><div>2) Have a new option that results in an ugly warning mess to the screeen?</div><div><br></div><div> We get lots of emails where people may have allocated wrong and we then tell them, one at a time, to set the flag,</div>
<div><br></div><div> Barry</div><div><br></div><div><br><div>Begin forwarded message:</div><br><blockquote type="cite"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span><b>From: </b></span><span style="font-family:'Helvetica';font-size:medium">Jed Brown <<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>><br>
</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span><b>Date: </b></span><span style="font-family:'Helvetica';font-size:medium">January 11, 2012 8:32:57 AM CST<br></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span><b>To: </b></span><span style="font-family:'Helvetica';font-size:medium">PETSc users list <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>><br>
</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span><b>Subject: </b></span><span style="font-family:'Helvetica';font-size:medium"><b>Re: [petsc-users] lying about nullspaces</b><br>
</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span><b>Reply-To: </b></span><span style="font-family:'Helvetica';font-size:medium">PETSc users list <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>><br>
</span></div><br><div class="gmail_quote">On Wed, Jan 11, 2012 at 09:16, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">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>
</blockquote></div><br></div></div></blockquote></div>