On Tue, Oct 1, 2013 at 7:21 PM, Gryllida <[email protected]> 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
