# PetscSectionVecNorm
Computes the vector norm, separated into field components. 
## Synopsis
```
#include "petscsection.h"   
#include "petscvec.h"   
PetscErrorCode PetscSectionVecNorm(PetscSection s, PetscSection gs, Vec x, NormType type, PetscReal val[])
```

## Input Parameters

- ***s    -*** the local Section
- ***gs   -*** the global section
- ***x    -*** the vector
- ***type -*** one of NORM_1, NORM_2, NORM_INFINITY.



## Output Parameter

- ***val  -*** the array of norms





## See Also
 `VecNorm()`, `PetscSectionCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/utils/vsection.c.html#PetscSectionVecNorm">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)  
