TSGetRHSMatrix

Returns the matrix A at the present timestep.

Synopsis

int TSGetRHSMatrix(TS ts, Mat *A, Mat *M, void **ctx)
Not Collective, but parallel objects are returned if TS is parallel

Input Parameter

ts -The TS context obtained from TSCreate()

Output Parameters

A - The matrix A, where U_t = A(t) U
M - The preconditioner matrix, usually the same as A
ctx - User-defined context for matrix evaluation routine

Notes: You can pass in PETSC_NULL for any return argument you do not need.

Contributed by: Matthew Knepley

See Also

TSGetTimeStep(), TSGetTime(), TSGetTimeStepNumber(), TSGetRHSJacobian()

Keywords

TS, timestep, get, matrix

Location: src/ts/interface/ts.c
Time Stepping
Table of Contents