PetscSFCreateEmbeddedLeafSF

removes edges from all but the selected leaves, does not remap indices

Synopsis

#include "petscsf.h" 
PetscErrorCode PetscSFCreateEmbeddedLeafSF(PetscSF sf,PetscInt nselected,const PetscInt *selected,PetscSF *newsf)
Collective

Input Arguments

sf - original star forest
nselected - number of selected leaves on this process
selected - indices of the selected leaves on this process

Output Arguments

newsf - new star forest

Level: advanced

See Also

PetscSFCreateEmbeddedSF(), PetscSFSetGraph(), PetscSFGetGraph()

Location:sf.c