1
$\begingroup$

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 ?

$\endgroup$
3
$\begingroup$

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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