petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscSFCreateEmbeddedSF

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

Synopsis

#include "petscsf.h" 
PetscErrorCode PetscSFCreateEmbeddedSF(PetscSF sf,PetscInt nroots,const PetscInt *selected,PetscSF *newsf)
Collective Many br

Input Arguments

sf - original star forest Many br
nroots - number of roots to select on this process Many br
selected - selected roots on this process Many br

Output Arguments

newsf -new star forest Many br

Many br

Note

To use the new PetscSF, it may be necessary to know the indices of the leaves that are still participating. This can Many brbe done by calling PetscSFGetGraph(). Many br

See Also

PetscSFSetGraph(), PetscSFGetGraph()

Level:advanced
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

Examples

src/vec/is/sf/examples/tutorials/ex1.c.html