#include "petscvec.h" int VecLoad(PetscViewer viewer,Vec *newvec)Collective on PetscViewer
int VEC_FILE_COOKIE int number of rows PetscScalar *values of all nonzeros
Note for Cray users, the int's stored in the binary file are 32 bit integers; not 64 as they are represented in the memory, so if you write your own routines to read/write these binary files from the Cray you need to adjust the integer sizes that you read in, see PetscReadBinary() and PetscWriteBinary() to see how this may be done.
In addition, PETSc automatically does the byte swapping for machines that store the bytes reversed, e.g. DEC alpha, freebsd, linux, nt and the paragon; thus if you write your own binary read/write routines you have to swap the bytes; see PetscReadBinary() and PetscWriteBinary() to see how this may be done.
Level:intermediate
Location:src/vec/utils/vecio.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages