# VecStashGetInfo
Gets how many values are currently in the vector stash, i.e. need to be communicated to other processors during the VecAssemblyBegin/End() process 
## Synopsis
```
#include "petscvec.h"   
PetscErrorCode VecStashGetInfo(Vec vec, PetscInt *nstash, PetscInt *reallocs, PetscInt *bnstash, PetscInt *breallocs)
```
Not collective


## Input Parameter

- ***vec -*** the vector



## Output Parameters

- ***nstash   -*** the size of the stash
- ***reallocs -*** the number of additional mallocs incurred.
- ***bnstash   -*** the size of the block stash
- ***breallocs -*** the number of additional mallocs incurred.in the block stash





## See Also
 [](chapter_vectors), `Vec`, `VecAssemblyBegin()`, `VecAssemblyEnd()`, `Vec`, `VecStashSetInitialSize()`, `VecStashView()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/interface/vector.c.html#VecStashGetInfo">src/vec/vec/interface/vector.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/interface/vector.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)  
