TSSetRHSFunction#
Sets the routine for evaluating the function, where U_t = G(t,u).
Synopsis#
#include "petscts.h"
PetscErrorCode TSSetRHSFunction(TS ts, Vec r, TSRHSFunctionFn *f, void *ctx)
Logically Collective
Input Parameters#
Note#
You must call this function or TSSetIFunction()
to define your ODE. You cannot use this function when solving a DAE.
See Also#
TS: Scalable ODE and DAE Solvers, TS
, TSRHSFunctionFn
, TSSetRHSJacobian()
, TSSetIJacobian()
, TSSetIFunction()
Level#
beginner
Location#
Examples#
src/tao/unconstrained/tutorials/burgers_spectral.c
src/ts/tutorials/ex21.c
src/ts/utils/dmplexlandau/tutorials/ex1.c
src/ts/tutorials/ex1.c
src/ts/tutorials/ex5.c
src/ts/tutorials/ex3.c
src/ts/tutorials/ex9.c
src/ts/tutorials/extchemfield.c
src/ts/utils/dmplexlandau/tutorials/ex2.c
src/tao/unconstrained/tutorials/spectraladjointassimilation.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages