TSSetIFunction#
Set the function to compute F(t,U,U_t) where F() = 0 is the DAE to be solved.
Synopsis#
#include "petscts.h"
PetscErrorCode TSSetIFunction(TS ts, Vec r, TSIFunction f, void *ctx)
Logically Collective
Input Parameters#
Note#
The user MUST call either this routine or TSSetRHSFunction()
to define the ODE. When solving DAEs you must use this function.
See Also#
TS: Scalable ODE and DAE Solvers, TS
, TSIFunction
, TSSetRHSJacobian()
, TSSetRHSFunction()
,
TSSetIJacobian()
Level#
beginner
Location#
Examples#
src/ts/tutorials/ex36.c
src/ts/tutorials/ex40.c
src/ts/tutorials/ex35.cxx
src/ts/tutorials/ex49.c
src/ts/tutorials/ex36A.c
src/ts/tutorials/ex20opt_ic.c
src/ts/tutorials/ex25.c
src/ts/tutorials/ex22.c
src/ts/tutorials/ex43.c
src/ts/tutorials/ex41.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages