<div dir="ltr"><div dir="ltr"><div>Hi Hong, <br><br></div>A related bugfix is that lines 2444 and 2447 from src/mat/impls/aij/mpi/mpiaij.c in the current petsc-master are missing a check for validity of idx. Adding a check ( if (idx)  ...) before accessing the entries of idx might be necessary (since the docs say that the idx argument is optional).  <br><br></div><div>Thanks for the insight into the cause of this bug.<br></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px">Sajid Ali | PhD Candidate<br></div><div style="font-size:12.8px">Applied Physics<br></div><div style="font-size:12.8px">Northwestern University</div><div style="font-size:12.8px"><a href="http://s-sajid-ali.github.io" target="_blank">s-sajid-ali.github.io</a></div></div></div></div></div></div></div></div>