petsc-master 2017-02-25
Report Typos and Errors


writes to a binary file, only from the first process


#include "petscviewer.h"   
PetscErrorCode PetscViewerBinaryWrite(PetscViewer viewer,void *data,PetscInt count,PetscDataType dtype,PetscBool istemp)
Collective on MPI_Comm

Input Parameters

viewer - the binary viewer
data - location of data
count - number of items of data to write
dtype - type of data to write
istemp - data may be overwritten

Notes: because byte-swapping may be done on the values in data it cannot be declared const

See Also

PetscViewerASCIIOpen(), PetscViewerPushFormat(), PetscViewerDestroy(),
VecView(), MatView(), VecLoad(), MatLoad(), PetscViewerBinaryGetDescriptor(), PetscDataType PetscViewerBinaryGetInfoPointer(), PetscFileMode, PetscViewer, PetscBinaryViewerRead()

Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages