PetscPartitionerShellSetPartition#
Set an artificial partition for a mesh
Synopsis#
#include "petscpartitioner.h" 
PetscErrorCode PetscPartitionerShellSetPartition(PetscPartitioner part, PetscInt size, const PetscInt sizes[], const PetscInt points[])
Collective
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 - NULLiff 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.)
Note#
It is safe to free the sizes and points arrays after use in this routine.
See Also#
Level#
developer
Location#
Examples#
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages