PETSC_EXTERN PetscErrorCode DMStagCreate1d(MPI_Comm comm,DMBoundaryType bndx,PetscInt M,PetscInt dof0,PetscInt dof1,DMStagStencilType stencilType,PetscInt stencilWidth,const PetscInt lx[],DM* dm)Collective
comm | - MPI communicator | |
bndx | - boundary type: DM_BOUNDARY_NONE, DM_BOUNDARY_PERIODIC, or DM_BOUNDARY_GHOSTED | |
M | - global number of grid points | |
dof0 | - number of degrees of freedom per vertex/point/node/0-cell | |
dof1 | - number of degrees of freedom per element/edge/1-cell | |
stencilType | - ghost/halo region type: DMSTAG_STENCIL_BOX or DMSTAG_STENCIL_NONE | |
stencilWidth | - width, in elements, of halo/ghost region | |
lx | - array of local sizes, of length equal to the comm size, summing to M |
-dm_view | - calls DMViewFromOptions() a the conclusion of DMSetUp() | |
-stag_grid_x <nx> | - number of elements in the x direction | |
-stag_ghost_stencil_width | - width of ghost region, in elements | |
-stag_boundary_type_x <none,ghosted,periodic> | - DMBoundaryType value |