# DMMoabVecGetArrayRead
Returns the read-only direct access array to the local representation of MOAB tag data for the underlying vector using locally owned+ghosted range of entities 
## Synopsis
```
#include "petscdmmoab.h"   
PetscErrorCode DMMoabVecGetArrayRead(DM dm, Vec vec, void *array)
```
Collective


## Input Parameters

- ***dm              -*** The DMMoab object being set
- ***vec             -*** The Vector whose underlying data is requested



## Output Parameter

- ***array           -*** The local data array





## See Also
 `DMMoabVecRestoreArrayRead()`, `DMMoabVecGetArray()`, `DMMoabVecRestoreArray()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/moab/dmmbvec.cxx.html#DMMoabVecGetArrayRead">src/dm/impls/moab/dmmbvec.cxx</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex35.cxx.html">src/ts/tutorials/ex35.cxx.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/moab/dmmbvec.cxx)


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