petsc-3.13.6 2020-09-29
Report Typos and Errors

# TSComputeSNESJacobian

Compute the SNESJacobian

### Synopsis

    #include "petscts.h"
    PetscErrorCode TSComputeSNESJacobian(TS ts,Vec x,Mat J,Mat Jpre)

### Input Parameters

| ts | - the TS context obtained from TSCreate()
| x | - state vector

### Output Parameters

| J | - Jacobian matrix
| Jpre | - preconditioning matrix for J (may be same as J)

### Notes

Using SNES to compute the Jacobian enables finite differencing when TS Jacobian is not available.

### Level

developer

### Location

src/ts/interface/sensitivity/tssen.c
Index of all Sensitivity routines
Table of Contents for all manual pages
Index of all manual pages