DMMGCreate
Creates a DA based multigrid solver object. This allows one to easily implement MG methods on regular grids.
Synopsis
#include "petscda.h"
#include "petscsles.h"
#include "petscmg.h"
int DMMGCreate(MPI_Comm comm,int nlevels,void *user,DMMG **dmmg)
Collective on MPI_Comm
Input Parameter
| comm | - the processors that will share the grids and solution process
|
| nlevels | - number of multigrid levels
|
| user | - an optional user context
|
Output Parameters
- the context -
Notes:
To provide a different user context for each level call DMMGSetUser() after calling
this routine
See Also
DMMGDestroy()
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
src/sles/examples/tutorials/ex25.c.html
src/snes/examples/tutorials/ex18.c.html
src/snes/examples/tutorials/ex19.c.html
src/snes/examples/tutorials/ex20.c.html
src/snes/examples/tutorials/ex22.c.html
src/snes/examples/tutorials/ex23.c.html
src/snes/examples/tutorials/ex24.c.html
src/snes/examples/tutorials/ex25.c.html
src/snes/examples/tutorials/ex29.c.html