:orphan:
# PetscRealView
Prints an array of doubles; useful for debugging. 
## Synopsis
```
#include "petscsys.h" 
PetscErrorCode PetscRealView(PetscInt N, const PetscReal idx[], PetscViewer viewer)
```
Collective


## Input Parameters

- ***N -*** number of `PetscReal` in array
- ***idx -*** array of `PetscReal`
- ***viewer -*** location to print array, `PETSC_VIEWER_STDOUT_WORLD`, `PETSC_VIEWER_STDOUT_SELF` or 0





## Note
This may be called from within the debugger


## Developer Note
idx cannot be const because may be passed to binary viewer where temporary byte swapping may be done


## See Also
 `PetscViewer`, `PetscIntView()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/error/err.c.html#PetscRealView">src/sys/error/err.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/field/tutorials/ex1.c.html">src/dm/field/tutorials/ex1.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/tutorials/ex10.c.html">src/mat/tutorials/ex10.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex11_sa.c.html">src/ts/tutorials/ex11_sa.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/error/err.c)


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