DMMGSetSNESLocal

Sets the local user function that defines the nonlinear set of equations that will use the grid hierarchy

Synopsis

#include "petscda.h"     
#include "petscmg.h"    
int DMMGSetSNESLocal(DMMG *dmmg,int (*function)(Scalar **,Scalar**,DALocalInfo*,void*),int (*jacobian)(SNES,Vec,Mat*,Mat*,MatStructure*,void*))
Collective on DMMG

Input Parameter

dmmg - the context
function - the function that defines the nonlinear system
jacobian - optional function to compute Jacobian

See Also

DMMGCreate(), DMMGDestroy, DMMGSetSLES()

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

Examples

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