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