:orphan:
# PetscQuadratureGetNumComponents
Return the number of components for functions to be integrated 
## Synopsis
```
#include "petscdt.h" 
PetscErrorCode PetscQuadratureGetNumComponents(PetscQuadrature q, PetscInt *Nc)
```
Not Collective


## Input Parameter

- ***q -*** The `PetscQuadrature` object



## Output Parameter

- ***Nc -*** The number of components





## Note
We are performing an integral int f(x) . w(x) dx, where both f and w (the weight) have Nc components.


## See Also
 `PetscQuadrature`, `PetscQuadratureSetNumComponents()`, `PetscQuadratureGetData()`, `PetscQuadratureSetData()`

## Level
intermediate

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


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


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