DMPlexGetCone — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# DMPlexGetCone

Return the points on the in-edges for this point in the DAG

## Synopsis

    #include "petscdmplex.h"
    PetscErrorCode DMPlexGetCone(DM dm, PetscInt p, const PetscInt *cone[])

Not Collective

## Input Parameters

- dm - The `DMPLEX`

- p - The point, which must lie in the chart set with `DMPlexSetChart()`

## Output Parameter

- cone - An array of points which are on the in-edges for point `p`, the length of `cone` is the result of `DMPlexGetConeSize()`

## Fortran Notes

`cone` must be declared with

      PetscInt, pointer :: cone(:)

You must also call `DMPlexRestoreCone()` after you finish using the array. `DMPlexRestoreCone()` is not needed/available in C.

## See Also

DMPlex: Unstructured Grids, `DM`, `DMPLEX`, `DMPlexGetConeSize()`, `DMPlexSetCone()`, `DMPlexGetConeTuple()`, `DMPlexSetChart()`, `DMPlexRestoreCone()`

## Level

beginner

## Location

src/dm/impls/plex/plex.c

## Examples

src/ts/tutorials/ex52.c
src/snes/tutorials/ex7.c
src/dm/impls/plex/tutorials/ex11.c
src/ts/tutorials/ex11_sa.c

Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages