:orphan: # PetscViewerBinaryReadAll reads from a binary file from all MPI processes, each rank receives its own portion of the data ## Synopsis ``` #include "petscviewer.h" PetscErrorCode PetscViewerBinaryReadAll(PetscViewer viewer, void *data, PetscInt count, PetscInt start, PetscInt total, PetscDataType dtype) ``` Collective ## Input Parameters - ***viewer -*** the `PETSCVIEWERBINARY` viewer - ***count -*** local number of items of data to read - ***start -*** local start, can be `PETSC_DETERMINE` - ***total -*** global number of items of data to read, can be `PETSC_DETERMINE` - ***dtype -*** type of data to read ## Output Parameter - ***data -*** location of data, treated as an array of type indicated by `dtype` ## See Also [](sec_viewers), `PETSCVIEWERBINARY`, `PetscViewerBinaryOpen()`, `PetscViewerBinarySetUseMPIIO()`, `PetscViewerBinaryRead()`, `PetscViewerBinaryWriteAll()` ## Level advanced ## Location src/sys/classes/viewer/impls/binary/binv.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/binary/binv.c) [Index of all Viewer routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)