:orphan:
# DMDACreateNaturalVector
Creates a parallel PETSc vector that will hold vector values in the natural numbering, rather than in the PETSc parallel numbering associated with the `DMDA`. 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDACreateNaturalVector(DM da, Vec *g)
```
Collective


## Input Parameter

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



## Output Parameter

- ***g -*** the distributed global vector





## Notes
The output parameter, g, is a regular PETSc vector that should be destroyed
with a call to `VecDestroy()` when usage is finished.

The number of local entries in the vector on each process is the same
as in a vector created with `DMCreateGlobalVector()`.


## See Also
 `DM`, `DMDA`, `DMCreateLocalVector()`, `VecDuplicate()`, `VecDuplicateVecs()`,
`DMDACreate1d()`, `DMDACreate2d()`, `DMDACreate3d()`, `DMGlobalToLocalBegin()`,
`DMGlobalToLocalEnd()`, `DMLocalToGlobalBegin()`

## Level
developer

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

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


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