:orphan:
# PetscPartitionerSetFromOptions
sets parameters in a `PetscPartitioner` from the options database 
## Synopsis
```
#include "petscpartitioner.h" 
PetscErrorCode PetscPartitionerSetFromOptions(PetscPartitioner part)
```
Collective


## Input Parameter

- ***part -*** the `PetscPartitioner` object to set options for



## Options Database Keys

- ***-petscpartitioner_type <type> -*** Sets the `PetscPartitioner` type; use -help for a list of available types
- ***-petscpartitioner_use_vertex_weights -*** Uses weights associated with the graph vertices
- ***-petscpartitioner_view_graph -*** View the graph each time PetscPartitionerPartition is called. Viewer can be customized, see `PetscOptionsGetViewer()`





## See Also
 `PetscPartitionerView()`, `PetscPartitionerSetType()`, `PetscPartitionerPartition()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/interface/partitioner.c.html#PetscPartitionerSetFromOptions">src/dm/partitioner/interface/partitioner.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/matpart/partmatpart.c.html#PetscPartitionerSetFromOptions_MatPartitioning">PetscPartitionerSetFromOptions_MatPartitioning in src/dm/partitioner/impls/matpart/partmatpart.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/parmetis/partparmetis.c.html#PetscPartitionerSetFromOptions_ParMetis">PetscPartitionerSetFromOptions_ParMetis in src/dm/partitioner/impls/parmetis/partparmetis.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/ptscotch/partptscotch.c.html#PetscPartitionerSetFromOptions_PTScotch">PetscPartitionerSetFromOptions_PTScotch in src/dm/partitioner/impls/ptscotch/partptscotch.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/shell/partshell.c.html#PetscPartitionerSetFromOptions_Shell">PetscPartitionerSetFromOptions_Shell in src/dm/partitioner/impls/shell/partshell.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/simple/partsimple.c.html#PetscPartitionerSetFromOptions_Simple">PetscPartitionerSetFromOptions_Simple in src/dm/partitioner/impls/simple/partsimple.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/partitioner/interface/partitioner.c)


[Index of all DM routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
