petsc-3.7.1 2016-05-15
MatPartitioningSetVertexWeights
Sets the weights for vertices for a partitioning.
Synopsis
#include "petscmat.h"
PetscErrorCode MatPartitioningSetVertexWeights(MatPartitioning part,const PetscInt weights[])
Logically Collective on Partitioning Many br
Input Parameters
| part | - the partitioning context Many br |
| weights | - the weights, on each process this array must have the same size as the number of local rows Many br |
Many br
Notes
The array weights is freed by PETSc so the user should not free the array. In C/C++ Many brthe array must be obtained with a call to PetscMalloc(), not malloc(). Many br
Keywords
Partitioning, destroy, context
See Also
MatPartitioningCreate(), MatPartitioningSetType(), MatPartitioningSetPartitionWeights()
Level:beginner
Location:src/mat/partition/partition.c
Index of all MatOrderings routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/mat/examples/tutorials/ex15.c.html