Hi Hong, 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).
Thanks for the insight into the cause of this bug. -- Sajid Ali | PhD Candidate Applied Physics Northwestern University s-sajid-ali.github.io
