[petsc-users] binary format difference between matlab and pestc
Xiangdong
epscodes at gmail.com
Sat Feb 15 19:59:43 CST 2014
Hello everyone,
Are the binary format of petsc and matlab the same? When I run the vec ex6,
petsc outputs (using PetscBinaryWrite) a binary file "input.dat" with
values
0
10
20
30
40
50
60
70
80
90
However, when I read this binary from matlab (use fopen and fread), I got
all values zeros. What might be wrong here?
Do I have to use petsc functions other than PetscBinaryWrite in order to
produce binary files which can be read into matlab?
Thank you.
Xiangdong
http://www.mcs.anl.gov/petsc/petsc-current/src/vec/vec/examples/tutorials/ex6.c.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140215/eb7a5b14/attachment.html>
More information about the petsc-users
mailing list