I am doing specific tests on matrices, so forgive me if this question doesn't seem related to Petsc typical use.

I have a SEQAIJ matrix on one process and I need to send it to another one. Is there a Petsc routine that enables this ?


1 Answer 1


I don't think PETSc supports it. PETSc really thinks in parallel, so it converts at most between distributed matrices and sequential matrices through submatrix taking operations. I would MatGetArray and send that with an MPI call.

  • $\begingroup$ Thanks for your input. I used MPI calls and it worked ok. $\endgroup$ Aug 9, 2019 at 9:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.