# TSRosWSetRecomputeJacobian
Set whether to recompute the Jacobian at each stage. The default is to update the Jacobian once per step. 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSRosWSetRecomputeJacobian(TS ts, PetscBool flg)
```
Logically collective


## Input Parameters

- ***ts -*** timestepping context
- ***flg -*** `PETSC_TRUE` to recompute the Jacobian at each stage





## See Also
 [](chapter_ts), `TSRosWType`, `TSRosWGetType()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/rosw/rosw.c.html#TSRosWSetRecomputeJacobian">src/ts/impls/rosw/rosw.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/rosw/rosw.c.html#TSRosWSetRecomputeJacobian_RosW">TSRosWSetRecomputeJacobian_RosW in src/ts/impls/rosw/rosw.c</A><BR>


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


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