PetscSFBcastAndOpEnd

end a broadcast & reduce operation started with PetscSFBcastAndOpBegin()

Synopsis

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

Input Arguments

sf - star forest
unit - data type
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

PetscSFSetGraph(), PetscSFReduceEnd()

Location:sf.c