:orphan:
# PetscDualSpaceGetNumDof
Get the number of degrees of freedom for each spatial (topological) dimension 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceGetNumDof(PetscDualSpace sp, const PetscInt **numDof)
```
Not Collective


## Input Parameter

- ***sp -*** The `PetscDualSpace`



## Output Parameter

- ***numDof -*** An array of length dim+1 which holds the number of dofs for each dimension





## See Also
 `PetscDualSpace`, `PetscDualSpaceGetFunctional()`, `PetscDualSpaceCreate()`

## Level
intermediate

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


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


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