# PCHPDDMSetCoarseCorrectionType
Sets the coarse correction type. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCHPDDMSetCoarseCorrectionType(PC pc, PCHPDDMCoarseCorrectionType type)
```
Collective on pc


## Input Parameters

- ***pc -*** preconditioner context
- ***type -*** `PC_HPDDM_COARSE_CORRECTION_DEFLATED`, `PC_HPDDM_COARSE_CORRECTION_ADDITIVE`, or `PC_HPDDM_COARSE_CORRECTION_BALANCED`



## Options Database Key

- ***-pc_hpddm_coarse_correction <deflated, additive, balanced> -*** type of coarse correction to apply





## See Also
 `PCHPDDMGetCoarseCorrectionType()`, `PCHPDDM`, `PCHPDDMCoarseCorrectionType`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/hpddm/pchpddm.cxx.html#PCHPDDMSetCoarseCorrectionType">src/ksp/pc/impls/hpddm/pchpddm.cxx</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/hpddm/pchpddm.cxx.html#PCHPDDMSetCoarseCorrectionType_HPDDM">PCHPDDMSetCoarseCorrectionType_HPDDM in src/ksp/pc/impls/hpddm/pchpddm.cxx</A><BR>


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


[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)  
