petsc-3.13.6 2020-09-29
Report Typos and Errors

PetscPartitionerShellSetPartition

Set an artifical partition for a mesh

Synopsis

#include "petscdmplex.h"   
PetscErrorCode PetscPartitionerShellSetPartition(PetscPartitioner part, PetscInt size, const PetscInt sizes[], const PetscInt points[])
Collective on PetscPartitioner

Input Parameters

part - The PetscPartitioner
size - The number of partitions
sizes - array of length size (or NULL) providing the number of points in each partition
points - array of length sum(sizes) (may be NULL iff sizes is NULL), a permutation of the points that groups those assigned to each partition in order (i.e., partition 0 first, partition 1 next, etc.)

Notes

It is safe to free the sizes and points arrays after use in this routine.

See Also

DMPlexDistribute(), PetscPartitionerCreate()

Level

developer

Location

src/dm/impls/plex/plexpartition.c

Examples

src/snes/tutorials/ex62.c.html
src/snes/tutorials/ex77.c.html

Index of all DMPLEX routines
Table of Contents for all manual pages
Index of all manual pages