# PetscDSCreate
Creates an empty PetscDS object. The type can then be set with PetscDSSetType(). 
## Synopsis
```
#include "petscds.h" 
PetscErrorCode PetscDSCreate(MPI_Comm comm, PetscDS *ds)
```
Collective


## Input Parameter

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



## Output Parameter

- ***ds   -*** The PetscDS object





## See Also
 `PetscDSSetType()`, `PETSCDSBASIC`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/interface/dtds.c.html#PetscDSCreate">src/dm/dt/interface/dtds.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex4f90.F90.html">src/dm/impls/plex/tutorials/ex4f90.F90.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/interface/dtds.c)


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