#include "petscts.h" PetscErrorCode TSComputeI2Jacobian(TS ts,PetscReal t,Vec U,Vec V,Vec A,PetscReal shiftV,PetscReal shiftA,Mat J,Mat P)Collective on TS
ts | - the TS context | |
t | - current timestep | |
U | - state vector | |
V | - time derivative of state vector | |
A | - second time derivative of state vector | |
shiftV | - shift to apply, see note below | |
shiftA | - shift to apply, see note below |
J | - Jacobian matrix | |
P | - optional preconditioning matrix |
dF/dU + shiftV*dF/dV + shiftA*dF/dA
Most users should not need to explicitly call this routine, as it is used internally within the nonlinear solvers.