:orphan:
# SNESNASMSetComputeFinalJacobian
Schedules the computation of the global and subdomain Jacobians upon convergence for the nonlinear additive Schwarz solver 
## Synopsis
```
#include "petscsnes.h"   
PetscErrorCode SNESNASMSetComputeFinalJacobian(SNES snes, PetscBool flg)
```
Collective


## Input Parameters

- ***snes -*** the SNES context
- ***flg -*** `PETSC_TRUE` to compute the Jacobians





## Notes
This is used almost exclusively in the implementation of `SNESASPIN`, where the converged subdomain and global Jacobian
is needed at each linear iteration.


## See Also
 `SNESNASM`, `SNESNASMGetSubdomains()`

## Level
developer

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/impls/nasm/nasm.c.html#SNESNASMSetComputeFinalJacobian_NASM">SNESNASMSetComputeFinalJacobian_NASM in src/snes/impls/nasm/nasm.c</A><BR>


---
[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)  
