#include "petscdmplex.h" #include "petscdmlabel.h" PetscErrorCode DMPlexDistributeOverlap(DM dm, PetscInt overlap, PetscSF *sf, DM *dmOverlap)Collective on DM
dm | - The non-overlapping distrbuted DMPlex object | |
overlap | - The overlap of partitions |
sf | - The PetscSF used for point distribution | |
dmOverlap | - The overlapping distributed DMPlex object, or NULL |
Note: If the mesh was not distributed, the return value is NULL.
The user can control the definition of adjacency for the mesh using DMPlexGetAdjacencyUseCone() and DMPlexSetAdjacencyUseClosure(). They should choose the combination appropriate for the function representation on the mesh.