On Jul 23, 2014, at 2:53 PM, Qiyue Lu <[email protected]> wrote: > Dear All: > > My collaborators sent me some PETSc binary format files(matrix, RHS) with an > convertor code which converts these binary file to Matrix Market. They did > tests on their machine and it works. > > However, when I compile this convertor code and running it with their PETSc > binary format matrix file, I got a message like: > [0]PETSC ERROR: Unexpected data in file > [0]PETSC ERROR: not matrix object > > > Because there is no error in convertor code compilation and we are using the > same version of PETSc, I am wondering, Is this due to 'binary format > compatible problem', the PETSc binary matrix file is hardware-platform > dependent?
It is suppose to be binary compatible on all machines. But you need the same PETSc numerical precision single, double, __float128, and the same PETSc index size 32 bit or 64 bit and the same real or complex Are both PETSc’s configured the same way? Barry > > Thanks > > Qiyue Lu
