petsc-3.3-p7 2013-05-11

SNESDMComputeFunction

This is a universal function evaluation routine that may be used with SNESSetFunction() as long as the user context has a DM as its first record and the user has called DMSetLocalFunction().

Synopsis

#include "petscsnes.h" 
#include "petscdm.h" 
PetscErrorCode SNESDMComputeFunction(SNES snes, Vec X, Vec F, void *ptr)
Collective on SNES

Input Parameters

snes - the SNES context
X - input vector
F - function vector
ptr - pointer to a structure that must have a DM as its first entry. This ptr must have been passed into SNESDMComputeFunction() as the context.

See Also

DMSetLocalFunction(), DMSetLocalJacobian(), SNESSetFunction(), SNESSetJacobian()

Level:intermediate
Location:
src/snes/utils/dmsnes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages

Examples

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