:orphan:
# PetscSpaceTensorGetNumSubspaces
Get the number of spaces in the tensor product space
## Synopsis
```
#include "petscfe.h"
PetscErrorCode PetscSpaceTensorGetNumSubspaces(PetscSpace sp, PetscInt *numTensSpaces)
```
## Input Parameter
- ***sp -*** the function space object
## Output Parameter
- ***numTensSpaces -*** the number of spaces
## Note
The name NumSubspaces is misleading because it is actually getting the number of defining spaces of the tensor product space, not a number of Subspaces of it
## See Also
`PETSCSPACETENSOR`, `PetscSpace`, `PetscSpaceTensorSetNumSubspaces()`, `PetscSpaceSetDegree()`, `PetscSpaceSetNumVariables()`
## Level
intermediate
## Location
src/dm/dt/space/impls/tensor/spacetensor.c
## Implementations
PetscSpaceTensorGetNumSubspaces_Tensor in src/dm/dt/space/impls/tensor/spacetensor.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/space/impls/tensor/spacetensor.c)
[Index of all SPACE routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)