# MatPartitioningChacoSetLocal
Set the local method for the Chaco partitioner. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatPartitioningChacoSetLocal(MatPartitioning part, MPChacoLocalType method)
```
Collective


## Input Parameters

- ***part -*** the partitioning context
- ***method -*** one of `MP_CHACO_KERNIGHAN` or `MP_CHACO_NONE`



## Options Database Key

- ***-mat_partitioning_chaco_local <method> -*** the local method





## Note
The default is to apply the Kernighan-Lin heuristic. See Chaco documentation
for additional details.


## See Also
 `MatPartitioningType`, `MATPARTITIONINGCHACO`, `MatPartitioningChacoSetGlobal()`, `MatPartitioningChacoGetLocal()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/chaco/chaco.c.html#MatPartitioningChacoSetLocal">src/mat/partition/impls/chaco/chaco.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/chaco/chaco.c.html#MatPartitioningChacoSetLocal_Chaco">MatPartitioningChacoSetLocal_Chaco in src/mat/partition/impls/chaco/chaco.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/partition/impls/chaco/chaco.c)


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