#include "petscts.h" PetscErrorCode TSAdjointSetRHSJacobian(TS ts,Mat Amat,PetscErrorCode (*func)(TS,PetscReal,Vec,Mat,void*),void *ctx)Logically Collective on TS
ts | - The TS context obtained from TSCreate() | |
func | - The function |
func (TS ts,PetscReal t,Vec y,Mat A,void *ctx);
t | - current timestep | |
y | - input vector (current ODE solution) | |
A | - output matrix | |
ctx | - [optional] user-defined function context |
Notes: Amat has the same number of rows and the same row parallel layout as u, Amat has the same number of columns and parallel layout as p
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