petsc-3.3-p7 2013-05-11

TSComputeRHSJacobianConstant

Reuses a Jacobian that is time-independent.

Synopsis

#include "petscts.h"  
PetscErrorCode TSComputeRHSJacobianConstant(TS ts,PetscReal t,Vec X,Mat *A,Mat *B,MatStructure *flg,void *ctx)
Collective on TS

Input Arguments

ts - time stepping context
t - time at which to evaluate
X - state at which to evaluate
ctx - context

Output Arguments

A - pointer to operator
B - pointer to preconditioning matrix
flg - matrix structure flag

Notes

This function is intended to be passed to TSSetRHSJacobian() to evaluate the Jacobian for linear time-independent problems.

See Also

TSSetRHSFunction(), TSSetRHSJacobian(), TSComputeRHSFunctionLinear()

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/ex3.c.html
src/ts/examples/tutorials/ex4.c.html
src/ts/examples/tutorials/ex5.c.html
src/ts/examples/tutorials/ex6.c.html