DMMGSetDM

Sets the coarse grid information for the grids

Synopsis

#include "petscdm.h"   
#include "petscksp.h"  
#include "petscpcmg.h"   
#include "petscdmmg.h" 
#include "petscpc.h"   
PetscErrorCode  DMMGSetDM(DMMG *dmmg, DM dm)
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

Logically Collective on DMMG and DM

Input Parameter

dmmg - the context
dm - the DMDA or DMComposite object

Options Database Keys

-dmmg_refine: Use the input problem as the coarse level and refine. -. -dmmg_refine false: Use the input problem as the fine level and coarsen.

See Also

DMMGCreate(), DMMGDestroy(), DMMGSetMatType()

Level:advanced
Location:
src/snes/utils/damg.c
Index of all DMMG routines
Table of Contents for all manual pages
Index of all manual pages src/ksp/ksp/examples/tutorials/ex22.c.html
src/ksp/ksp/examples/tutorials/ex25.c.html
src/ksp/ksp/examples/tutorials/ex28.c.html
src/ksp/ksp/examples/tutorials/ex29.c.html
src/ksp/ksp/examples/tutorials/ex31.c.html
src/ksp/ksp/examples/tutorials/ex32.c.html
src/ksp/ksp/examples/tutorials/ex34.c.html
src/ksp/ksp/examples/tutorials/ex35.c.html
src/ksp/ksp/examples/tutorials/ex37.c.html
src/ksp/ksp/examples/tutorials/ex47.c.html