petsc-3.12.5 2020-03-29
Report Typos and Errors

DMPlexSetAdjacencyUser

Define adjacency in the mesh using a user-provided callback

Synopsis

#include "petscdmplex.h"   
#include "petscdmlabel.h"  
PetscErrorCode DMPlexSetAdjacencyUser(DM dm,PetscErrorCode (*user)(DM,PetscInt,PetscInt*,PetscInt[],void*),void *ctx)

Input Parameters

dm - The DM object
user - The user callback, may be NULL (to clear the callback)
ctx - context for callback evaluation, may be NULL

Notes

The caller of DMPlexGetAdjacency may need to arrange that a large enough array is available for the adjacency.

Any setting here overrides other configuration of DMPlex adjacency determination.

See Also

DMSetAdjacency(), DMPlexDistribute(), DMPlexPreallocateOperator(), DMPlexGetAdjacency(), DMPlexGetAdjacencyUser()

Level

advanced

Location

src/dm/impls/plex/plexdistribute.c
Index of all DMPLEX routines
Table of Contents for all manual pages
Index of all manual pages