:orphan: # PetscViewerBinaryGetMPIIODescriptor Extracts the MPI IO file descriptor from a `PetscViewer`. ## Synopsis ``` #include "petscviewer.h" PetscErrorCode PetscViewerBinaryGetMPIIODescriptor(PetscViewer viewer, MPI_File *fdes) ``` Not Collective; No Fortran Support ## Input Parameter - ***viewer -*** `PetscViewer` context, obtained from `PetscViewerBinaryOpen()` ## Output Parameter - ***fdes -*** file descriptor ## See Also [](sec_viewers), `PETSCVIEWERBINARY`, `PetscViewerBinaryOpen()`, `PetscViewerBinaryGetInfoPointer()`, `PetscViewerBinaryGetUseMPIIO()`, `PetscViewerBinarySetUseMPIIO()`, `PetscViewerBinaryGetMPIIOOffset()` ## 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)