DMPlexRewriteSF#
Rewrites the ownership of the PetsSF
of a DM
(in place).
Synopsis#
#include "petscdmplex.h"
static PetscErrorCode DMPlexRewriteSF(DM dm, PetscInt n, PetscInt *pointsToRewrite, PetscInt *targetOwners, const PetscInt *degrees)
Input parameters#
dm - The
DMPLEX
object.n - The number of points.
pointsToRewrite - The points in the
PetscSF
whose ownership will change.targetOwners - New owner for each element in pointsToRewrite.
degrees - Degrees of the points in the
PetscSF
as obtained byPetscSFComputeDegreeBegin()
/PetscSFComputeDegreeEnd()
.
See Also#
DMPlex: Unstructured Grids, DM
, DMPLEX
, DMLabel
, PetscSF
, DMPlexDistribute()
, DMPlexCreateOverlap()
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