petsc-3.7.1 2016-05-15
Report Typos and Errors

TSGetRHSJacobian

Returns the Jacobian J at the present timestep.

Synopsis

#include "petscts.h"  
PetscErrorCode  TSGetRHSJacobian(TS ts,Mat *Amat,Mat *Pmat,TSRHSJacobian *func,void **ctx)
Not Collective, but parallel objects are returned if TS is parallel Many br

Input Parameter

ts -The TS context obtained from TSCreate() Many br

Output Parameters

Amat - The (approximate) Jacobian J of G, where U_t = G(U,t) (or NULL) Many br
Pmat - The matrix from which the preconditioner is constructed, usually the same as Amat (or NULL) Many br
func - Function to compute the Jacobian of the RHS (or NULL) Many br
ctx - User-defined context for Jacobian evaluation routine (or NULL) Many br

Notes: You can pass in NULL for any return argument you do not need. Many br

Many br

See Also

TSGetTimeStep(), TSGetMatrices(), TSGetTime(), TSGetTimeStepNumber()

Keywords

TS, timestep, get, matrix, Jacobian

Level:intermediate
Location:
src/ts/interface/ts.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ts/examples/tutorials/ex4.c.html