#include "petscts.h" PetscErrorCode TSSetIFunction(TS ts,Vec res,TSIFunction f,void *ctx)Logically Collective on TS
ts | - the TS context obtained from TSCreate() | |
r | - vector to hold the residual (or PETSC_NULL to have it created internally) | |
f | - the function evaluation routine | |
ctx | - user-defined context for private data for the function evaluation routine (may be PETSC_NULL) |
f(TS ts,PetscReal t,Vec u,Vec u_t,Vec F,ctx);
t | - time at step/stage being solved | |
u | - state vector | |
u_t | - time derivative of state vector | |
F | - function vector | |
ctx | - [optional] user-defined context for matrix evaluation routine |
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