DAMGSetSLES

Sets the linear solver object that will use the grid hierarchy

Synopsis

#include "petscda.h"     
#include "petscsles.h"    
#include "petscmg.h"    
int DAMGSetSLES(DAMG *damg,int (*rhs)(DAMG,Vec),int (*func)(DAMG,Mat))
Collective on DAMG and SLES

Input Parameter

damg - 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

DAMGCreate(), DAMGDestroy, DAMGSetGrid()

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