# PetscLimiterSetType
Builds a `PetscLimiter` for a given `PetscLimiterType` 
## Synopsis
```
#include "petscfv.h" 
PetscErrorCode PetscLimiterSetType(PetscLimiter lim, PetscLimiterType name)
```
Collective on lim


## Input Parameters

- ***lim  -*** The `PetscLimiter` object
- ***name -*** The kind of limiter



## Options Database Key

- ***-petsclimiter_type <type> -*** Sets the PetscLimiter type; use -help for a list of available types





## See Also
 `PetscLimiter`, `PetscLimiterType`, `PetscLimiterGetType()`, `PetscLimiterCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fv/interface/fv.c.html#PetscLimiterSetType">src/dm/dt/fv/interface/fv.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex11.c.html">src/ts/tutorials/ex11.c.html</A><BR>


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


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