SNESDAFormFunction

This is a universal function evaluation routine that may be used with SNESSetFunction(). Must be used with SNESSetDM().

Synopsis

#include "petscdmda.h"    
#include "petscdmmesh.h"  
#include "petscpcmg.h"    
#include "petscdmmg.h"  
PetscErrorCode  SNESDAFormFunction(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 user context containing problem specific information used by application function

See Also

DMDASetLocalFunction(), DMDASetLocalJacobian(), DMDASetLocalAdicFunction(), DMDASetLocalAdicMFFunction(),
SNESSetFunction(), SNESSetJacobian(), SNESSetDM()

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

Examples

src/snes/examples/tutorials/ex26.c.html
src/snes/examples/tutorials/ex5f.F.html