[petsc-users] How can I do reduction operation for Petsc vectors in splitted communicators?

Jed Brown jed at jedbrown.org
Mon Jan 23 10:09:54 CST 2017


Fangbo Wang <fangbowa at buffalo.edu> writes:

> Hi,
>
> Assume I did MPI_Comm_split, the global communicator is splitted into
> several disjoint communicators.
>
> I created a parallel Petsc vector with same size in all the small
> communicators.
> How can I do a reduction operation for this Petsc vector among all the
> small communicators?

VecNorm (and related functions) on the Vecs created using a communicator
are done exclusively on that communicator.  Is that the question?  Of
course you can always use the original communicator (by creating objects
on it or by calling MPI_* functions directly).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170123/dd845d3e/attachment.pgp>


More information about the petsc-users mailing list