PetscViewerBinaryWrite#
writes to a binary file, only from the first MPI rank
Synopsis#
#include "petscviewer.h"
PetscErrorCode PetscViewerBinaryWrite(PetscViewer viewer, const void *data, PetscInt count, PetscDataType dtype)
Collective
Input Parameters#
viewer - the
PETSCVIEWERBINARYviewerdata - location of data, treated as an array of the type indicated by
dtypecount - number of items of data to write
dtype - type of data to write
See Also#
Viewers: Looking at PETSc Objects, PETSCVIEWERBINARY, PetscViewerASCIIOpen(), PetscViewerPushFormat(), PetscViewerDestroy(),
VecView(), MatView(), VecLoad(), MatLoad(), PetscViewerBinaryGetDescriptor(), PetscDataType
PetscViewerBinaryGetInfoPointer(), PetscFileMode, PetscViewer, PetscViewerBinaryRead()
Level#
beginner
Location#
Examples#
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages