(1) you should use size_t not KIND=8, i.e.
INTEGER(size_t) :: sz1, sz2, sz3, sz, offset
(2) your compound datatype size is wrong, use instead:
sz = H5OFFSETOF(C_LOC(wdata(1)%a(1)), C_LOC(wdata(2)%a(1)))
On 2012-03-20 08:50, Ekin Akoglu wrote:
Dear members,
Attached are a script for writing a compound data type in HDF5
format and its "h5dump" output named "cc_res.txt". As you might see
in
the output file, the second group of variables are written
erroneously
if H5T_NATIVE_DOUBLE is used for real(8) type variable named
"wdata%b". However, if I convert the data type to real(4) and use
H5T_NATIVE_REAL instead, it is written correctly to the output file .
I could not figure out the problem. I would be glad to hear if you
have an idea on this. Thank you in advance.
Regards,
--
EKIN AKOGLU
Research Assistant
Institute of Marine Sciences
Middle East Technical University
P.O. Box 28, 33731
Erdemli, Mersin
Turkey
Web: www.ims.metu.edu.tr [1]
Email: [email protected] [2]
Phone: +90 324 521 34 34
GSM: +90 506 554 03 90
Fax: +90 324 521 23 27
Links:
------
[1] http://webmail.hdfgroup.org/www.ims.metu.edu.tr
[2] mailto:[email protected]
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org