petsc-3.3-p7 2013-05-11

PetscSFCreateInverseSF

given a PetscSF in which all vertices have degree 1, creates the inverse map

Synopsis

PetscErrorCode PetscSFCreateInverseSF(PetscSF sf,PetscSF *isf)
Collective

Input Arguments

sf -star forest to invert

Output Arguments

isf -inverse of sf

Notes

All roots must have degree 1.

The local space may be a permutation, but cannot be sparse.

See Also

PetscSFSetGraph()

Level:advanced
Location:
src/sys/sf/sf.c
Index of all PetscSF routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/sf/examples/tutorials/ex1.c.html