2
$\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$

1 Answer 1

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$
1
  • $\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.