#include "petscsf.h" PetscErrorCode PetscSFGetRootRanks(PetscSF sf,PetscInt *nranks,const PetscMPIInt **ranks,const PetscInt **roffset,const PetscInt **rmine,const PetscInt **rremote)Not Collective
nranks | - number of ranks referenced by local part | |
ranks | - array of ranks | |
roffset | - offset in rmine/rremote for each rank (length nranks+1) | |
rmine | - concatenated array holding local indices referencing each remote rank | |
rremote | - concatenated array holding remote indices referenced for each remote rank |