HT5_NATIVE_DOUBLE problem in compound datatype formed with arrays of different length

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.


complexcompound.f95 (3.41 KB)

cc_res.txt (488 Bytes)


*Ekin Akoglu*

Research Assistant

Institute of Marine Sciences
Middle East Technical University
P.O. Box 28, 33731
Erdemli, Mersin

Email: <>
Phone: +90 324 521 34 34
GSM: +90 506 554 03 90
Fax: +90 324 521 23 27