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

TSComputeIJacobian

Evaluates the Jacobian of the DAE

Synopsis

#include "petscts.h"  
PetscErrorCode TSComputeIJacobian(TS ts,PetscReal t,Vec U,Vec Udot,PetscReal shift,Mat A,Mat B,PetscBool imex)
Collective on TS and Vec Many br

Input Many br

Input Parameters

ts - the TS context Many br
t - current timestep Many br
U - state vector Many br
Udot - time derivative of state vector Many br
shift - shift to apply, see note below Many br
imex - flag indicates if the method is IMEX so that the RHSJacobian should be kept separate Many br

Output Parameters

A - Jacobian matrix Many br
B - optional preconditioning matrix Many br
flag - flag indicating matrix structure Many br

Notes

If F(t,U,Udot)=0 is the DAE, the required Jacobian is Many br

dF/dU + shift*dF/dUdot Many br

Most users should not need to explicitly call this routine, as it Many bris used internally within the nonlinear solvers. Many br

Many br

Keywords

TS, compute, Jacobian, matrix

See Also

TSSetIJacobian()

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