petsc-3.3-p7 2013-05-11

DMSetLocalFunction

Set the local residual function from this DM

Synopsis

#include "petscdm.h"     
PetscErrorCode DMSetLocalFunction(DM dm, PetscErrorCode (*lf)(DM, Vec, Vec, void *))
Not collective

Input Parameters

dm - The DM
lf - The local residual function

Calling sequence of lf

   lf (SNES snes, Vec x, Vec f, void *ctx);

snes - the SNES context
x - local vector with the state at which to evaluate residual
f - local vector to put residual in
ctx - optional user-defined function context

See Also

DMGetLocalFunction(), DMGetLocalJacobian(), DMSetLocalJacobian()

Level:intermediate
Location:
src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/snes/examples/tutorials/ex62.c.html