PetscSFReduceBegin

begin reduction of leafdata into rootdata, to be completed with call to PetscSFReduceEnd()

Synopsis

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

Input Arguments

sf - star forest
unit - data type
leafdata - values to reduce
op - reduction operation

Output Arguments

rootdata - result of reduction of values from all leaves of each root

Level: intermediate

See Also

PetscSFBcastBegin()

Location:sf.c