[petsc-users] Does MatCopy require Mats to have the same communicator?

David Knezevic david.knezevic at akselos.com
Mon Jan 27 10:57:35 CST 2020


I have a case where I'd like to copy a Mat defined on COMM_WORLD to a new
Mat defined on some sub-communicator. Does MatCopy support this, or would I
have to write a custom copy operation?

I see here
<https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatConvert.html#MatConvert>
that MatConvert requires identical communicators, but I don't see any
mention of this for MatCopy, so I wanted to check.

Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200127/b9dd0e7b/attachment.html>


More information about the petsc-users mailing list