DMTSSetRHSFunctionLocal#
set a local rhs function evaluation function. This function is called with local vector containing the local vector information PLUS ghost point information. It should compute a result for all local elements and DM
will automatically accumulate the overlapping values.
Synopsis#
#include "petscts.h"
PetscErrorCode DMTSSetRHSFunctionLocal(DM dm, PetscErrorCode (*func)(DM, PetscReal, Vec, Vec, void *), void *ctx)
Logically Collective
Input Parameters#
dm -
DM
to associate callback withfunc - local function evaluation
ctx - context for function evaluation
See Also#
TS: Scalable ODE and DAE Solvers, DM
, DMTSGetRHSFunctionLocal()
, DMTSSetRHSFunction()
, DMTSSetIFunction()
, DMTSSetIJacobianLocal()
Level#
beginner
Location#
Examples#
src/ts/tutorials/ex45.c
src/ts/tutorials/ex11_sa.c
src/ts/tutorials/ex18.c
src/ts/tutorials/ex11.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages