# DMDANaturalAllToGlobalCreate
Creates a scatter context that maps from a copy of the entire vector on each processor to its local part in the global vector. 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDANaturalAllToGlobalCreate(DM da, VecScatter *scatter)
```
Collective on da


## Input Parameter

- ***da -*** the distributed array context



## Output Parameter

- ***scatter -*** the scatter context





## See Also
 `DM`, `DMDA`, `DMDAGlobalToNaturalEnd()`, `DMLocalToGlobalBegin()`, `DMDACreate2d()`,
`DMGlobalToLocalBegin()`, `DMGlobalToLocalEnd()`, `DMDACreateNaturalVector()`

## Level
advanced

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/dagtona.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)  
