:orphan: # DMDASetNumProcs Sets the number of processes in each dimension ## Synopsis ``` #include "petscdmda.h" PetscErrorCode DMDASetNumProcs(DM da, PetscInt m, PetscInt n, PetscInt p) ``` Logically Collective ## Input Parameters - ***da -*** the `DMDA` - ***m -*** the number of X procs (or `PETSC_DECIDE`) - ***n -*** the number of Y procs (or `PETSC_DECIDE`) - ***p -*** the number of Z procs (or `PETSC_DECIDE`) ## See Also `DM`, `DMDA`, `DMDASetSizes()`, `PetscSplitOwnership()` ## Level intermediate ## Location src/dm/impls/da/da.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/da.c) [Index of all DMDA routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)