Skip to main content
`Ctrl`+`K`

# DMDATSIJacobianLocalFn

A prototype of a local residual evaluation function for use with `DMDA` that would be passed to `DMDATSSetIJacobianLocal()`

## Synopsis

    #include <petscts.h>
    PETSC_EXTERN_TYPEDEF typedef PetscErrorCode DMDATSIJacobianLocalFn(DMDALocalInfo *info, PetscReal t, void *x, void *xdot, PetscReal shift, Mat J, Mat B, PetscCtx ctx);

## Calling Sequence

- info - defines the subdomain to evaluate the residual on

- t - time at which to evaluate the jacobian

- x - array of local state information

- xdot - time derivative at this state

- shift - see `TSSetIJacobian()` for the meaning of this parameter

- J - Jacobian matrix

- B - matrix from which to construct the preconditioner; often same as `J`

- ctx - optional context

## Note

The deprecated `DMDATSIJacobianLocal` still works as a replacement for `DMDATSIJacobianLocalFn` *.

## See Also

`DMDA`, `DMDATSSetIJacobianLocal()`, `TSIJacobianFn`, `DMDATSIFunctionLocalFn`, `DMDATSRHSFunctionLocalFn`, `DMDATSRHSJacobianlocal()`

## Level

beginner

## Location

include/petscts.h

Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages