PetscPartitionerDMPlexPartition#
Create a non-overlapping partition of the cells in the mesh
Synopsis#
#include "petscdmplex.h"
PetscErrorCode PetscPartitionerDMPlexPartition(PetscPartitioner part, DM dm, PetscSection targetSection, PetscSection partSection, IS *partition)
Collective on part
Input Parameters#
part - The
PetscPartitionertargetSection - The
PetscSectiondescribing the absolute weight of each partition (can be NULL)dm - The mesh
DM
Output Parameters#
partSection - The
PetscSectiongiving the division of points by partitionpartition - The list of points by partition
Note#
If the DM has a local section associated, each point to be partitioned will be weighted by the total number of dofs identified
by the section in the transitive closure of the point.
See Also#
DMPlex: Unstructured Grids in PETSc, DM, DMPLEX, PetscPartitioner, PetscSection, DMPlexDistribute(), PetscPartitionerCreate(), PetscSectionCreate(),
PetscSectionSetChart(), PetscPartitionerPartition()
Level#
developer
Location#
src/dm/impls/plex/plexpartition.c
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages