:orphan:
# PCCompositeAddPCType
Adds another `PC` of the given type to the composite `PC`.
## Synopsis
```
#include "petscksp.h"
PetscErrorCode PCCompositeAddPCType(PC pc, PCType type)
```
Collective
## Input Parameters
- ***pc -*** the preconditioner context
- ***type -*** the type of the new preconditioner
## See Also
`PCCOMPOSITE`, `PCCompositeAddPC()`, `PCCompositeGetNumberPC()`
## Level
intermediate
## Location
src/ksp/pc/impls/composite/composite.c
## Examples
src/ksp/ksp/tutorials/ex60.c
src/ksp/ksp/tutorials/ex71.c
## Implementations
PCCompositeAddPCType_Composite in src/ksp/pc/impls/composite/composite.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/composite/composite.c)
[Index of all PC routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)