# DMDASetBoundaryType
Sets the type of ghost nodes on domain boundaries. 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDASetBoundaryType(DM da, DMBoundaryType bx, DMBoundaryType by, DMBoundaryType bz)
```
Not collective


## Input Parameters

- ***da    -*** The `DMDA`
- ***bx,by,bz -*** One of `DM_BOUNDARY_NONE`, `DM_BOUNDARY_GHOSTED`, `DM_BOUNDARY_PERIODIC`





## See Also
 `DM`, `DMDA`, `DMDACreate()`, `DMDestroy()`, `DMBoundaryType`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/da.c.html#DMDASetBoundaryType">src/dm/impls/da/da.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/da.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)  
