DMDASetSizes#
Sets the number of grid points in the three dimensional directions
Synopsis#
#include "petscdmda.h"
PetscErrorCode DMDASetSizes(DM da, PetscInt M, PetscInt N, PetscInt P)
Logically Collective
Input Parameters#
da - the
DMDAM - the global X size
N - the global Y size
P - the global Z size
Developer Note#
Since the dimension may not yet have been set the code cannot error check for non-positive Y and Z number of grid points
See Also#
DMDA - Creating vectors for structured grids, DM, DMDA, PetscSplitOwnership()
Level#
intermediate
Location#
Examples#
src/dm/tutorials/ex19.c
src/dm/impls/swarm/tests/ex12.c
src/ksp/ksp/tests/ex32.c
src/mat/tests/ex129.c
src/snes/tests/ex2.c
Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages