:orphan: # MatPartitioningPTScotchSetImbalance Sets the value of the load imbalance ratio to be used during strategy selection. ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatPartitioningPTScotchSetImbalance(MatPartitioning part, PetscReal imb) ``` Collective ## Input Parameters - ***part -*** the partitioning context - ***imb -*** the load imbalance ratio ## Options Database Key - ***-mat_partitioning_ptscotch_imbalance -*** set load imbalance ratio ## Note Must be in the range [0,1]. The default value is 0.01. ## See Also `MATPARTITIONINGSCOTCH`, `MatPartitioningPTScotchSetStrategy()`, `MatPartitioningPTScotchGetImbalance()` ## Level advanced ## Location src/mat/partition/impls/scotch/scotch.c ## Implementations MatPartitioningPTScotchSetImbalance_PTScotch in src/mat/partition/impls/scotch/scotch.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/partition/impls/scotch/scotch.c) [Index of all MatOrderings routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)