# VecGetValuesSection
Gets all the values associated with a given point, according to the section, in the given Vec 
## Synopsis
```
#include "petscsection.h"   
#include "petscvec.h"   
PetscErrorCode VecGetValuesSection(Vec v, PetscSection s, PetscInt point, PetscScalar **values)
```
Not collective


## Input Parameters

- ***v -*** the Vec
- ***s -*** the organizing PetscSection
- ***point -*** the point



## Output Parameter

- ***values -*** the array of output values





## See Also
 `PetscSection`, `PetscSectionCreate()`, `VecSetValuesSection()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/utils/vsection.c.html#VecGetValuesSection">src/vec/vec/utils/vsection.c</A>


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