:orphan:
# SNESNASMSetWeight
Sets weight to use when adding overlapping updates 
## Synopsis
```
#include "petscsnes.h"   
PetscErrorCode SNESNASMSetWeight(SNES snes, Vec weight)
```
Collective


## Input Parameters

- ***snes -*** the `SNES` context
- ***weight -*** the weights to use (typically 1/N for each dof, where N is the number of patches it appears in)





## See Also
 `SNESNASM`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/impls/nasm/nasm.c.html#SNESNASMSetWeight">src/snes/impls/nasm/nasm.c</A>


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


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