:orphan:
# PetscFVGetComponentName
Get the name of a component (used in output and viewing) in a `PetscFV` 
## Synopsis
```
#include "petscfv.h" 
PetscErrorCode PetscFVGetComponentName(PetscFV fvm, PetscInt comp, const char **name)
```
Logically Collective

## Input Parameters

- ***fvm -*** the `PetscFV` object
- ***comp -*** the component number



## Output Parameter

- ***name -*** the component name





## See Also
 `PetscFV`, `PetscFVSetComponentName()`

## Level
intermediate

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


---
[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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
