Yes, see MatGetRow https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatGetRow.html --Junchao Zhang
On Wed, May 29, 2019 at 2:28 PM Manav Bhatia via petsc-users <petsc-users@mcs.anl.gov<mailto:petsc-users@mcs.anl.gov>> wrote: Hi, Once a MPI-AIJ matrix has been assembled, is there a method to get the nonzero I-J locations? I see one for sequential matrices here: https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatGetRowIJ.html , but not for parallel matrices. Regards, Manav