DMMGSetSLES

Sets the linear solver object that will use the grid hierarchy

Synopsis

#include "petscda.h"     
#include "petscsles.h"    
#include "petscmg.h"    
int DMMGSetSLES(DMMG *dmmg,int (*rhs)(DMMG,Vec),int (*func)(DMMG,Mat))
Collective on DMMG and SLES

Input Parameter

dmmg - the context
func - function to compute linear system matrix on each grid level
rhs - function to compute right hand side on each level

See Also

DMMGCreate(), DMMGDestroy, DMMGSetDM()

Level:advanced
Location:
src/sles/utils/damg.c
Index of all SLES routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sles/examples/tutorials/ex22.c.html