#include "petscvec.h" PetscErrorCode VecLoad(PetscViewer viewer, const VecType outtype,Vec *newvec)Collective on PetscViewer
viewer | - binary file viewer, obtained from PetscViewerBinaryOpen() or NetCDF file viewer, obtained from PetscViewerNetcdfOpen() | |
outtype | - the type of vector VECSEQ or VECMPI or PETSC_NULL (which indicates using VECSEQ if the communicator in the Viewer is of size 1; otherwise use VECMPI). |
int VEC_FILE_COOKIE int number of rows PetscScalar *values of all entries
In addition, PETSc automatically does the byte swapping for machines that store the bytes reversed, e.g. DEC alpha, freebsd, linux, Windows and the paragon; thus if you write your own binary read/write routines you have to swap the bytes; see PetscBinaryRead() and PetscBinaryWrite() to see how this may be done.
Level:intermediate
Location:src/vec/vec/utils/vecio.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages