# SNESCompositeSetType
Sets the type of composite preconditioner. 
## Synopsis
```
#include "petscsnes.h" 
PetscErrorCode SNESCompositeSetType(SNES snes, SNESCompositeType type)
```
Logically Collective on snes


## Input Parameters

- ***snes -*** the preconditioner context
- ***type -*** `SNES_COMPOSITE_ADDITIVE` (default), `SNES_COMPOSITE_MULTIPLICATIVE`



## Options Database Key

- ***-snes_composite_type <type: one of multiplicative, additive, special> -*** Sets composite preconditioner type





## See Also
 `SNES_COMPOSITE_ADDITIVE`, `SNES_COMPOSITE_MULTIPLICATIVE`, `SNESCompositeType`, `SNESCOMPOSITE`

## Level
Developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/impls/composite/snescomposite.c.html#SNESCompositeSetType">src/snes/impls/composite/snescomposite.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/impls/composite/snescomposite.c.html#SNESCompositeSetType_Composite">SNESCompositeSetType_Composite in src/snes/impls/composite/snescomposite.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/impls/composite/snescomposite.c)


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