: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 src/dm/dt/dualspace/interface/dualspace.c --- [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)