DMPlexDistributeOverlap#

Add partition overlap to a distributed non-overlapping DM.

Synopsis#

#include "petscdmplex.h"   
#include "petscdmlabel.h"  
PetscErrorCode DMPlexDistributeOverlap(DM dm, PetscInt overlap, PeOp PetscSF *sf, DM *dmOverlap)

Collective

Input Parameters#

  • dm - The non-overlapping distributed DMPLEX object

  • overlap - The overlap of partitions (the same on all ranks)

Output Parameters#

  • sf - The PetscSF used for point distribution, or pass NULL if not needed

  • dmOverlap - The overlapping distributed DMPLEX object

Options Database Keys#

  • -dm_distribute_overlap_labels name1,name2,… - List of overlap label names

  • -dm_distribute_overlap_values int1,int2,… - List of overlap label values

  • -dm_distribute_overlap_exclude_labels name1,name2,… - List of labels used to exclude points from overlap

  • -dm_distribute_overlap_exclude_values int1,int2,… - List of label values used to exclude points from overlap

Notes#

If the mesh was not distributed, the return value is NULL.

The options above are read with dist_ appended to the options prefix of dm, for example -dist_dm_distribute_overlap_labels.

The user can control the definition of adjacency for the mesh using DMSetAdjacency(). They should choose the combination appropriate for the function representation on the mesh.

See Also#

DMPLEX, PetscSF, DM, DMPlexCreate(), DMSetAdjacency(), DMPlexDistribute(), DMPlexCreateOverlapLabel(), DMPlexGetOverlap()

Level#

advanced

Location#

src/dm/impls/plex/plexdistribute.c

Examples#

src/dm/impls/plex/tests/ex1.c
src/dm/impls/plex/tests/ex19.c
src/dm/impls/plex/tests/ex29.c
src/dm/impls/plex/tests/ex3.c
src/dm/impls/plex/tests/ex47.c

Implementations#

DMPlexDistributeOverlap_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