Extracts the file descriptor from a PetscViewer.
PetscErrorCode PetscViewerBinaryGetDescriptor(PetscViewer viewer,int *fdes)
Collective On PetscViewer
viewer -PetscViewer context, obtained from PetscViewerBinaryOpen()
fdes -file descriptor
For writable binary PetscViewers, the descriptor will only be valid for the
first processor in the communicator that shares the PetscViewer. For readable
files it will only be valid on nodes that have the file. If node 0 does not
have the file it generates an error even if another node does have the file.
This routine is not supported in Fortran.
Developer Notes: This must be called on all processes because Dave May changed
the source code that this may be trigger a PetscViewerSetUp() call if it was not previously triggered.
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages