<div class="gmail_quote">On Mon, Jun 4, 2012 at 9:02 AM, Wen Jiang <span dir="ltr"><<a href="mailto:jiangwen84@gmail.com" target="_blank">jiangwen84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>Sorry for the confusion.                   <br><br><div class="gmail_quote"><div class="im">>>There aren't any errors in this -info output? What did you see? Send the<br>>>whole error message.<br>
<br></div>The error message is attached. It said Argument out of range and New nonzero at () caused a malloc. I did not have such error in petsc 3.2. I realized that I did not give exact preallocation in MatCreateAIJ, but I did not  set its preallocation call MatSetOption(mat, NEW_NONZERO_ALLOCATION_ERR,PETSC_TRUE). Does petsc dev automatically call MatSetOption? <br>
</div></blockquote><div><br></div><div>"Preallocation routines now automatically set MAT_NEW_NONZERO_ALLOCATION_ERR, if you intentionally preallocate less than necessary then use MatSetOption(mat,MAT_NEW_NONZERO_ALLOCATION_ERR,PETSC_FALSE) to disable the error generation."</div>
<div><br></div><div><a href="http://www.mcs.anl.gov/petsc/documentation/changes/dev.html">http://www.mcs.anl.gov/petsc/documentation/changes/dev.html</a></div><div><br></div><div><br></div><div>In the future, ALWAYS send the full error message so we don't have to ask for it every time.</div>
</div>