DAMGSetGrid

Sets the grid information for the grids

Synopsis

#include "petscda.h"     
#include "petscsles.h"    
#include "petscmg.h"    
int DAMGSetGrid(DAMG *damg,int dim,DAPeriodicType pt,DAStencilType st,int M,int N,int P,int dof,int sw)
Collective on DAMG

Input Parameter

See Also

DAMGCreate(), 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/ex22.c
src/snes/examples/tutorials/ex18.c
src/snes/examples/tutorials/ex19.c
damg - the context
dim - 1, 2, or 3
pt - DA_NONPERIODIC, DA_XPERIODIC, DA_YPERIODIC, DA_XYPERIODIC, DA_XYZPERIODIC, DA_XZPERIODIC, or DA_YZPERIODIC
st - DA_STENCIL_STAR or DA_STENCIL_BOX
M - grid points in x
N - grid points in y
P - grid points in z
sw - stencil width, often 1 + dof - number of degrees of freedom per node