petsc-3.3-p7 2013-05-11

PetscSFReduceEnd

end a reduction operation started with PetscSFReduceBegin()

Synopsis

PetscErrorCode PetscSFReduceEnd(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

See Also

PetscSFSetGraph(), PetscSFBcastEnd()

Level:intermediate
Location:
src/sys/sf/sf.c
Index of all PetscSF routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/sf/examples/tutorials/ex1.c.html