:orphan:
# 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
[](ch_ts), `TSRosWType`, `TSRosWGetType()`
## Level
intermediate
## Location
src/ts/impls/rosw/rosw.c
## Implementations
TSRosWSetRecomputeJacobian_RosW in src/ts/impls/rosw/rosw.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)