DMMGGetSNESLocal

Returns the local functions for residual and Jacobian evaluation.

Synopsis

#include "petscdmda.h"    
#include "petscdmmesh.h"  
#include "petscpcmg.h"    
#include "petscdmmg.h"  
#include "petscmat.h" 
PetscErrorCode DMMGGetSNESLocal(DMMG *dmmg,DMDALocalFunction1 *function, DMDALocalFunction1 *jacobian)
This is being deprecated. Use KSPSetDM() for linear problems and SNESSetDM() for nonlinear problems. See src/ksp/ksp/examples/tutorials/ex45.c and src/snes/examples/tutorials/ex57.c

Not Collective

Input Parameter

dmmg -the context

Output Parameters

function - the function that defines the nonlinear system
jacobian - function defines the local part of the Jacobian

See Also

DMMGCreate(), DMMGDestroy, DMMGSetKSP(), DMMGSetSNES(), DMMGSetSNESLocal()

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