PETSC_EXTERN PetscErrorCode DMStagCreate2d(MPI_Comm comm, DMBoundaryType bndx ,DMBoundaryType bndy, PetscInt M,PetscInt N, PetscInt m,PetscInt n, PetscInt dof0,PetscInt dof1,PetscInt dof2,DMStagStencilType stencilType,PetscInt stencilWidth,const PetscInt lx[],const PetscInt ly[],DM* dm)Collective
| comm | - MPI communicator | |
| bndx,bndy | - boundary type: DM_BOUNDARY_NONE, DM_BOUNDARY_PERIODIC, or DM_BOUNDARY_GHOSTED | |
| M,N | - global number of grid points in x,y directions | |
| m,n | - number of ranks in the x,y directions (may be PETSC_DECIDE) | |
| dof0 | - number of degrees of freedom per vertex/point/node/0-cell | |
| dof1 | - number of degrees of freedom per edge/1-cell | |
| dof2 | - number of degrees of freedom per element/2-cell | |
| stencilType | - ghost/halo region type: DMSTAG_STENCIL_NONE, DMSTAG_STENCIL_BOX, or DMSTAG_STENCIL_STAR | |
| stencilWidth | - width, in elements, of halo/ghost region | |
| lx,ly | - arrays of local x,y element counts, of length equal to m,n, summing to M,N |
| -dm_view | - calls DMViewFromOptions() a the conclusion of DMSetUp() | |
| -stag_grid_x <nx> | - number of elements in the x direction | |
| -stag_grid_y <ny> | - number of elements in the y direction | |
| -stag_ranks_x <rx> | - number of ranks in the x direction | |
| -stag_ranks_y <ry> | - number of ranks in the y direction | |
| -stag_ghost_stencil_width | - width of ghost region, in elements | |
| -stag_boundary_type_x <none,ghosted,periodic> | - DMBoundaryType value | |
| -stag_boundary_type_y <none,ghosted,periodic> | - DMBoundaryType value |