petsc-3.3-p7 2013-05-11

TSComputeIFunctionLinear

Evaluate the left hand side via the user-provided Jacobian, for linear problems only

Synopsis

#include "petscts.h"  
PetscErrorCode TSComputeIFunctionLinear(TS ts,PetscReal t,Vec X,Vec Xdot,Vec F,void *ctx)
Collective on TS

Input Arguments

ts - time stepping context
t - time at which to evaluate
X - state at which to evaluate
Xdot - time derivative of state vector
ctx - context

Output Arguments

F -left hand side

Notes

The assumption here is that the left hand side is of the form A*Xdot (and not A*Xdot + B*X). For other cases, the user is required to write their own TSComputeIFunction. This function is intended to be passed to TSSetIFunction() to evaluate the left hand side for linear problems. The matrix (and optionally the evaluation context) should be passed to TSSetIJacobian().

See Also

TSSetIFunction(), TSSetIJacobian(), TSComputeIJacobianConstant()

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