ViewerBinaryGetDescriptor

Extracts the file descriptor from a viewer.

Synopsis

#include "petsc.h"   
int ViewerBinaryGetDescriptor(Viewer viewer,int *fdes)
Not Collective

viewer - viewer context, obtained from ViewerBinaryOpen()
fdes - file descriptor

Notes

For writable binary viewers, the descriptor will only be valid for the first processor in the communicator that shares the viewer. 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.

Fortran Note

This routine is not supported in Fortran.

Keywords

Viewer, file, get, descriptor

See Also

ViewerBinaryOpen(),ViewerBinaryGetInfoPointer()

Level:advanced
Location:src/sys/src/viewer/impls/binary/binv.c
Viewer Index
Table of Contents