# PetscSpaceTensorGetNumSubspaces
Get the number of spaces in the tensor product 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscSpaceTensorGetNumSubspaces(PetscSpace sp, PetscInt *numTensSpaces)
```

## Input Parameter

- ***sp  -*** the function space object



## Output Parameter

- ***numTensSpaces -*** the number of spaces





## See Also
 `PETSCSPACETENSOR`, `PetscSpace`, `PetscSpaceTensorSetNumSubspaces()`, `PetscSpaceSetDegree()`, `PetscSpaceSetNumVariables()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/tensor/spacetensor.c.html#PetscSpaceTensorGetNumSubspaces">src/dm/dt/space/impls/tensor/spacetensor.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/tensor/spacetensor.c.html#PetscSpaceTensorGetNumSubspaces_Tensor">PetscSpaceTensorGetNumSubspaces_Tensor in src/dm/dt/space/impls/tensor/spacetensor.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
