#include "petscts.h" PetscErrorCode TSSetRHSJacobian(TS ts,Mat Amat,Mat Pmat,TSRHSJacobian f,void *ctx)Logically Collective on TS Many br
ts | - the TS context obtained from TSCreate() Many br | |
Amat | - (approximate) Jacobian matrix Many br | |
Pmat | - matrix from which preconditioner is to be constructed (usually the same as Amat) Many br | |
f | - the Jacobian evaluation routine Many br | |
ctx | - [optional] user-defined context for private data for the Many brJacobian evaluation routine (may be NULL) Many br |
func (TS ts,PetscReal t,Vec u,Mat A,Mat B,void *ctx);
t | - current timestep Many br | |
u | - input vector Many br | |
Amat | - (approximate) Jacobian matrix Many br | |
Pmat | - matrix from which preconditioner is to be constructed (usually the same as Amat) Many br | |
ctx | - [optional] user-defined context for matrix evaluation routine Many br |
The TS solver may modify the nonzero structure and the entries of the matrices Amat and Pmat between the calls to f() Many brYou should not assume the values are the same in the next call to f() as you set them in the previous call. Many br
Many br
Level:beginner
Location:src/ts/interface/ts.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages