# TSComputeIJacobianP
Runs the user-defined IJacobianP function. 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSComputeIJacobianP(TS ts, PetscReal t, Vec U, Vec Udot, PetscReal shift, Mat Amat, PetscBool imex)
```
Collective on ts


## Input Parameters

- ***ts -*** the `TS` context
- ***t -*** current timestep
- ***U -*** state vector
- ***Udot -*** time derivative of state vector
- ***shift -*** shift to apply, see note below
- ***imex -*** flag indicates if the method is IMEX so that the RHSJacobian should be kept separate



## Output Parameters

- ***A -*** Jacobian matrix





## See Also
 [](chapter_ts), `TS`, `TSSetIJacobianP()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/interface/sensitivity/tssen.c.html#TSComputeIJacobianP">src/ts/interface/sensitivity/tssen.c</A>


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


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