int VecLoad(Viewer viewer,Vec *newvec)Collective on Viewer
int VEC_COOKIE int number of rows Scalar *values of all nonzeros
Note for Cray users, the int's stored in the binary file are 32 bitintegers; not 64 as they are represented in the memory, so if youwrite your own routines to read/write these binary files from the Crayyou need to adjust the integer sizes that you read in, seePetscReadBinary() and PetscWriteBinary() to see how this may bedone.
In addition, PETSc automatically does the byte swapping formachines that store the bytes reversed, e.g. DEC alpha, freebsd, linux, nt and the paragon; thus if you write your own binaryread/write routines you have to swap the bytes; see PetscReadBinary() and PetscWriteBinary() to see how this may be done.
Location: src/vec/utils/vecio.c
Vector Index
Table of Contents