DMPlexGetAdjacency#
Return all points adjacent to the given point
Synopsis#
#include "petscdmplex.h"
#include "petscdmlabel.h"
PetscErrorCode DMPlexGetAdjacency(DM dm, PetscInt p, PetscInt *adjSize, PetscInt *adj[])
Input Parameters#
dm - The
DM
objectp - The point
Input/Output Parameters#
adjSize - The maximum size of
adj
if it is non-NULL
, orPETSC_DETERMINE
; on output the number of adjacent pointsadj - Either
NULL
so that the array is allocated, or an existing array with sizeadjSize
; on output contains the adjacent points
Notes#
The user must PetscFree()
the adj
array if it was not passed in.
See Also#
DMPLEX
, DMSetAdjacency()
, DMPlexDistribute()
, DMCreateMatrix()
, DMPlexPreallocateOperator()
Level#
advanced
Location#
Implementations#
DMPlexGetAdjacency_Internal in src/dm/impls/plex/plexdistribute.c
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages