petsc-3.14.6 2021-03-30
Report Typos and Errors

PetscSFReduceWithMemTypeBegin

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

Synopsis

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

Input Arguments

sf - star forest
unit - data type
leafmtype - memory type of leafdata
leafdata - values to reduce
rootmtype - memory type of rootdata
op - reduction operation

Output Arguments

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

See Also

PetscSFBcastBegin(), PetscSFReduceBegin()

Level

intermediate

Location

src/vec/is/sf/interface/sf.c
Index of all PetscSF routines
Table of Contents for all manual pages
Index of all manual pages