# DMDACreate
Creates a DMDA object. 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDACreate(MPI_Comm comm, DM *da)
```
Collective


## Input Parameter

- ***comm -*** The communicator for the DMDA object



## Output Parameter

- ***da  -*** The DMDA object





## Developers Note
Since there exists DMDACreate1/2/3d() should this routine even exist?


## See Also
 `DMDASetSizes()`, `DMClone()`, `DMDACreate1d()`, `DMDACreate2d()`, `DMDACreate3d()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/dacreate.c.html#DMDACreate">src/dm/impls/da/dacreate.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/tutorials/ex19.c.html">src/dm/tutorials/ex19.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/dacreate.c)


[Index of all DMDA routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
