DAMGSetSNES

Sets the nonlinear solver object that will use the grid hierarchy

Synopsis

#include "petscda.h"     
#include "petscmg.h"    
int DAMGSetSNES(DAMG *damg,int (*function)(SNES,Vec,Vec,void*),int (*jacobian)(SNES,Vec,Mat*,Mat*,MatStructure*,void*))
Collective on DAMG and SNES

Input Parameter

damg - the context
snes - the nonlinear solver object

See Also

DAMGCreate(), DAMGDestroy, DAMGSetSLES()

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/ex18.c
src/snes/examples/tutorials/ex19.c