DMMGSetSNES
Sets the nonlinear function that defines the nonlinear set of equations to be solved using the grid hierarchy.
Synopsis
#include "petscda.h"
#include "petscmg.h"
#include "petscdmmg.h"
#include "petscmat.h"
PetscErrorCode PETSCSNES_DLLEXPORT DMMGSetSNES(DMMG *dmmg,PetscErrorCode (*function)(SNES,Vec,Vec,void*),PetscErrorCode (*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
|
Options Database Keys