:orphan: # PetscDualSpaceGetNumComponents Return the number of components for this space ## Synopsis ``` #include "petscfe.h" PetscErrorCode PetscDualSpaceGetNumComponents(PetscDualSpace sp, PetscInt *Nc) ``` ## Input Parameter - ***sp -*** The `PetscDualSpace` ## Output Parameter - ***Nc -*** The number of components ## Note A vector space, for example, will have d components, where d is the spatial dimension ## See Also `PetscDualSpaceSetNumComponents()`, `PetscDualSpaceGetDimension()`, `PetscDualSpaceCreate()`, `PetscDualSpace` ## 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)