:orphan:
# TSGetIJacobian
Returns the implicit Jacobian at the present timestep.
## Synopsis
```
#include "petscts.h"
PetscErrorCode TSGetIJacobian(TS ts, Mat *Amat, Mat *Pmat, TSIJacobian *f, void **ctx)
```
Not Collective, but parallel objects are returned if ts is parallel
## Input Parameter
- ***ts -*** The `TS` context obtained from `TSCreate()`
## Output Parameters
- ***Amat -*** The (approximate) Jacobian of F(t,U,U_t)
- ***Pmat -*** The matrix from which the preconditioner is constructed, often the same as `Amat`
- ***f -*** The function to compute the matrices
- ***ctx -*** User-defined context for Jacobian evaluation routine
## Note
You can pass in `NULL` for any return argument you do not need.
## See Also
[](ch_ts), `TS`, `TSGetTimeStep()`, `TSGetRHSJacobian()`, `TSGetMatrices()`, `TSGetTime()`, `TSGetStepNumber()`
## Level
advanced
## Location
src/ts/interface/ts.c
## Examples
src/ts/tutorials/ex53.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/ts.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)