DMPlexDistribute#
Distributes the mesh and any associated sections.
Synopsis#
#include "petscdmplex.h"
#include "petscdmlabel.h"
PetscErrorCode DMPlexDistribute(DM dm, PetscInt overlap, PetscSF *sf, DM *dmParallel)
Collective
Input Parameters#
dm - The original
DMPLEX
objectoverlap - The overlap of partitions, 0 is the default
Output Parameters#
Note#
If the mesh was not distributed, the output dmParallel
will be NULL
.
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
, DM
, DMPlexCreate()
, DMSetAdjacency()
, DMPlexGetOverlap()
Level#
intermediate
Location#
Examples#
src/dm/label/tutorials/ex1.c
src/dm/label/tutorials/ex1f90.F90
src/dm/tutorials/ex20.c
src/ts/tutorials/ex11_sa.c
src/ts/tutorials/ex30.c
src/dm/tutorials/ex21.c
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages