#include "petscdmplex.h" #include "petscdmlabel.h" PetscErrorCode DMPlexGetAdjacency(DM dm, PetscInt p, PetscInt *adjSize, PetscInt *adj[])
dm | - The DM object | |
p | - The point |
adjSize | - The maximum size of adj if it is non-NULL, or PETSC_DETERMINE; on output the number of adjacent points | |
adj | - Either NULL so that the array is allocated, or an existing array with size adjSize; on output contains the adjacent points |