# VecNestGetSize
Returns the size of the nest vector. 
## Synopsis
```
#include "petscvec.h"   
PetscErrorCode VecNestGetSize(Vec X, PetscInt *N)
```
Not collective


## Input Parameter

- ***X  -*** nest vector



## Output Parameter

- ***N -*** number of nested vecs



## Notes




## See Also
 `VecNestGetSubVec()`, `VecNestGetSubVecs()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/nest/vecnest.c.html#VecNestGetSize">src/vec/vec/impls/nest/vecnest.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/nest/vecnest.c.html#VecNestGetSize_Nest">VecNestGetSize_Nest in src/vec/vec/impls/nest/vecnest.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/impls/nest/vecnest.c)


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