#include "petscts.h" PetscErrorCode TSSetIJacobianP(TS ts,Mat Amat,PetscErrorCode (*func)(TS,PetscReal,Vec,Vec,PetscReal,Mat,void*),void *ctx)Logically Collective on TS
ts | - TS context obtained from TSCreate() | |
Amat | - JacobianP matrix | |
func | - function | |
ctx | - [optional] user-defined function context |
func (TS ts,PetscReal t,Vec y,Mat A,void *ctx);
t | - current timestep | |
U | - input vector (current ODE solution) | |
Udot | - time derivative of state vector | |
shift | - shift to apply, see note below | |
A | - output matrix | |
ctx | - [optional] user-defined function context |