# PCBDDCSetCoarseningRatio
Set coarsening ratio used in multilevel version 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCBDDCSetCoarseningRatio(PC pc, PetscInt k)
```
Logically collective


## Input Parameters

- ***pc -*** the preconditioning context
- ***k -*** coarsening ratio (H/h at the coarser level)



## Options Database Key

- ***-pc_bddc_coarsening_ratio <int> -*** Set coarsening ratio used in multilevel coarsening





## Note
Approximately k subdomains at the finer level will be aggregated into a single subdomain at the coarser level


## See Also
 `PCBDDC`, `PCBDDCSetLevels()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/bddc/bddc.c.html#PCBDDCSetCoarseningRatio">src/ksp/pc/impls/bddc/bddc.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/bddc/bddc.c.html#PCBDDCSetCoarseningRatio_BDDC">PCBDDCSetCoarseningRatio_BDDC in src/ksp/pc/impls/bddc/bddc.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/bddc/bddc.c)


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