PetscSFBcastAndOpBegin

begin pointwise broadcast with root value being reduced to leaf value, to be concluded with call to PetscSFBcastAndOpEnd()

Synopsis

#include "petscsf.h" 
PetscErrorCode PetscSFBcastAndOpBegin(PetscSF sf,MPI_Datatype unit,const void *rootdata,void *leafdata,MPI_Op op)
Collective on PetscSF

Input Arguments

sf - star forest on which to communicate
unit - data type associated with each node
rootdata - buffer to broadcast
op - operation to use for reduction

Output Arguments

leafdata - buffer to be reduced with values from each leaf's respective root

Level: intermediate

See Also

PetscSFBcastAndOpEnd(), PetscSFBcastBegin(), PetscSFBcastEnd()

Location:sf.c