TSRHSJacobianFn#

A prototype of a TS right-hand-side Jacobian evaluation function that would be passed to TSSetRHSJacobian()

Synopsis#

#include <petscts.h> 
PETSC_EXTERN_TYPEDEF typedef PetscErrorCode(TSRHSJacobianFn)(TS ts, PetscReal t, Vec u, Mat Amat, Mat Pmat, void *ctx);

Calling Sequence#

  • ts - the TS context obtained from TSCreate()

  • t - current time

  • u - input vector

  • Amat - (approximate) Jacobian matrix

  • Pmat - matrix from which preconditioner is to be constructed (usually the same as Amat)

  • ctx - [optional] user-defined context for matrix evaluation routine

Note#

The deprecated TSRHSJacobian still works as a replacement for TSRHSJacobianFn *.

See Also#

TS: Scalable ODE and DAE Solvers, TS, TSSetRHSJacobian(), DMTSSetRHSJacobian(), TSRHSFunctionFn, TSIFunctionFn, TSIJacobianFn

Level#

beginner

Location#

include/petscts.h


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