petsc-3.3-p7 2013-05-11

DMComplexGetTransitiveClosure

Return the points on the transitive closure of the in-edges or out-edges for this point in the Sieve DAG

Synopsis

#include "petscdmcomplex.h"   
PetscErrorCode DMComplexGetTransitiveClosure(DM dm, PetscInt p, PetscBool useCone, PetscInt *numPoints, PetscInt *points[])
Not collective

Input Parameters

mesh - The DMComplex
p - The Sieve point, which must lie in the chart set with DMComplexSetChart()
useCone - PETSC_TRUE for in-edges, otherwise use out-edges
points - If points is PETSC_NULL on input, internal storage will be returned, otherwise the provided array is used

Output Parameters

numPoints - The number of points in the closure, so points[] is of size 2*numPoints
points - The points and point orientations, interleaved as pairs [p0, o0, p1, o1, ...]

Note

If using internal storage (points is PETSC_NULL on input), each call overwrites the last output.

See Also

DMComplexCreate(), DMComplexSetCone(), DMComplexSetChart(), DMComplexGetCone()

Level:beginner
Location:
src/dm/impls/complex/complex.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages