DMDATSSetIFunctionLocal#
set a local residual evaluation function for use with DMDA
Synopsis#
#include "petscdmda.h"
#include "petscts.h"
PetscErrorCode DMDATSSetIFunctionLocal(DM dm, InsertMode imode, DMDATSIFunctionLocal func, void *ctx)
Logically Collective
Input Parameters#
dm -
DM
to associate callback withfunc - local residual evaluation
ctx - optional context for local residual evaluation
Calling sequence of func
#
PetscErrorCode func(DMDALocalInfo *info, PetscReal t, Vec x, Vec xdot, Vec f, void *ctx)
info - defines the subdomain to evaluate the residual on
t - time at which to evaluate residual
x - array of local state information
xdot - array of local time derivative information
f - output array of local function evaluation information
ctx - optional context passed above
See Also#
TS: Scalable ODE and DAE Solvers, DMDA
, DMTSSetIFunction()
, DMDATSSetIJacobianLocal()
, DMDASNESSetFunctionLocal()
Level#
beginner
Location#
Examples#
src/ts/tutorials/ex26.c
src/ts/tutorials/ex29.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages