:orphan:
# SNESSetFunctionType
Sets the `SNESFunctionType` of the `SNES` method. 
## Synopsis
```
#include "petscsnes.h"  
PetscErrorCode SNESSetFunctionType(SNES snes, SNESFunctionType type)
```
Logically Collective


## Input Parameters

- ***snes -*** the `SNES` context
- ***type -*** the function type





## Notes
Possible values of the function type

- ***`SNES_FUNCTION_DEFAULT` -*** the default for the given `SNESType`
- ***`SNES_FUNCTION_UNPRECONDITIONED` -*** an unpreconditioned function evaluation (this is the function provided with `SNESSetFunction()`
- ***`SNES_FUNCTION_PRECONDITIONED` -*** a transformation of the function provided with `SNESSetFunction()`


Different `SNESType`s use this value in different ways


## See Also
 [](ch_snes), `SNES`, `SNESFunctionType`, `SNESGetNormSchedule()`, `SNESComputeFunction()`, `VecNorm()`, `SNESSetFunction()`, `SNESSetInitialFunction()`, `SNESNormSchedule`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/interface/snes.c.html#SNESSetFunctionType">src/snes/interface/snes.c</A>


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


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