Side note, change integer(8) to:
integer(size_t) :: type_size, offset
integer(size_t) :: type_sizei, type_sizer
Other then that, I removed the module specific variables and the code
compiled fine using gcc version 4.6.2
Are you sure you enabled the Fortran 2003 interface, i.e. the configure
summary has
Languages:
----------
Fortran: yes
Fortran Compiler: /usr/bin/gfortran
Fortran 2003 Compiler: yes
Which version of gfortran are you using? Can you compile
compound_fortran2003.f90 at
http://www.hdfgroup.org/ftp/HDF5/examples/src-html/f90.html
Also, you should consider using the h5offsetof function instead of
calculating the offset yourself.
Scot
On 2012-03-02 09:18, Ekin Akoglu wrote:
Dear all,
I am trying to write a compound data type in hdf5 format into a file.
However, when it is time to insert the data to the data space,
gfortran gives the error during the compilation:
gfortran -c -I/usr/local/hdf5-1.8.7/include
-L/usr/local/hdf5-1.8.7/lib -lhdf5_fortran h5write.f95
h5write.f95:159.51:
call h5dwrite_f(dset_id, memtype, f_ptr, hdferr)
1
Error: There is no specific subroutine for the generic 'h5dwrite_f'
at (1)
When I comment out the last hd5write_f, the code correctly compiles
and when run, it creates the data in the file and populate it with
zeros. But when writing actual data, it fails at h5write_f step
during
compilation. My code is attached. I would be glad if you could help
me
on the matter.
Regards,
Ekin Akoglu
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org