DMMGSetSNESLocalWithAD

Sets the local user function that defines the nonlinear set of equations that will use the grid hierarchy and its AD derivate function

Synopsis

#include "petscda.h"     
#include "petscmg.h"    
int DMMGSetSNESLocalWithAD(DMMG *dmmg,int (*function)(Scalar **,Scalar**,DALocalInfo*,void*),int (*ad_function)(Scalar **,Scalar**,DALocalInfo*,void*))
Collective on DMMG

Input Parameter

dmmg - the context
function - the function that defines the nonlinear system
jacobian - AD 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