DAMGCreate
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 DAMGCreate(MPI_Comm comm,int nlevels,void *user,DAMG **damg)
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, or to change the
ratio in the grid spacing simply change the DAMG structure after calling this routine
See Also
DAMGDestroy()
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/ex20.c
src/sles/examples/tutorials/ex22.c
src/snes/examples/tutorials/ex18.c
src/snes/examples/tutorials/ex19.c