#include "petscsf.h" PetscErrorCode PetscSFGetLeafRanks(PetscSF sf,PetscInt *niranks,const PetscMPIInt **iranks,const PetscInt **ioffset,const PetscInt **irootloc)Not Collective
niranks | - number of leaf ranks referencing roots on this process | |
iranks | - array of ranks | |
ioffset | - offset in irootloc for each rank (length niranks+1) | |
irootloc | - concatenated array holding local indices of roots referenced by each leaf rank |