Ekin, On Mar 26, 2012, at 2:48 PM, Ekin Akoglu wrote:
> Thank you for your help. Now it works. In the meantime, I managed to read the > data with the attached script without initializing the FORTRAN interface and > without defining the compound data type. Your program still has h5open_f call (the call is required! :-) > This seems a shorter approach but I wonder whether this approach might lead > to some erroneous results or not while reading data. Is the other one > preferable over this one? > The program works because you are reading data on the same machine it was written. In general, HDF5 file datatype (returned by h5dget_type_f) cannot be used to describe memory buffer (memory datatype) in the h5dread_f call; this is not portable and may not work if the program runs on another system. The original program is correct (except the missing h5open_f call) and portable. Elena ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Elena Pourmal The HDF Group http://hdfgroup.org 1800 So. Oak St., Suite 203, Champaign IL 61820 217.531.6112 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Regards, > > Ekin > > > On 03/26/2012 06:09 PM, [email protected] wrote: >> CALL h5open_f(hdferr) > <read_complexcompound.f95>_______________________________________________ > Hdf-forum is for HDF software users discussion. > [email protected] > http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
