:orphan:
# PetscSectionGetFieldComponents
Returns the number of field components for the given field. 
## Synopsis
```
#include "petscsection.h"   
PetscErrorCode PetscSectionGetFieldComponents(PetscSection s, PetscInt field, PetscInt *numComp)
```
Not Collective


## Input Parameters

- ***s -*** the `PetscSection`
- ***field -*** the field number



## Output Parameter

- ***numComp -*** the number of field components





## Developer Note
This function is misnamed. There is a Num in `PetscSectionGetNumFields()` but not in this name


## See Also
 [PetscSection](sec_petscsection), `PetscSection`, `PetscSectionSetFieldComponents()`, `PetscSectionGetNumFields()`,
`PetscSectionSetComponentName()`, `PetscSectionGetComponentName()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/section/interface/section.c.html#PetscSectionGetFieldComponents">src/vec/is/section/interface/section.c</A>


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


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