[petsc-users] Does PETSc have any broadcast function?

Matthew Knepley knepley at gmail.com
Tue Oct 1 19:38:28 CDT 2013


On Tue, Oct 1, 2013 at 7:21 PM, Gryllida <gryllida at fastmail.fm> wrote:

> >On Wed, 1 Sep 2010 20:54:54 +0000, "Li, Zhisong (lizs)" <lizs at
> mail.uc.edu> wrote:
> >>  Hi, Petsc Team,
> >>
> >> I wonder if Petsc has any function like MPI_Bcast() which can
> >> broadcast a value to all processes. If we directly add MPI functions
> >> into the Petsc program, the MPI datatype may be incompatible with the
> >> Petsc datatype. Does Petsc have any easy way to handle this?
> >
> >PETSc registers the types MPIU_SCALAR, MPIU_REAL, and MPIU_INT so you
> >can use these to send PetscScalar, PetscReal, and PetscInt respectively
> >using any MPI functions.
> >
> >Jed
> >
>
> What about MPI_DOUBLE?
>

That already exists.

  Matt

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131001/388b582f/attachment.html>


More information about the petsc-users mailing list