Hello,
I'm trying to make a fortran code use the MPI-I/O driver of HDF5. The initial code (which doesn't have any problem) looks like the following:
call h5open_f (ierror)
call h5fcreate_f (filename,H5F_ACC_TRUNC_F,file_id,ierror)
! creating groups, datasets, etc. then writing to them and closing them
call h5fclose_f (file_id,ierror)
call h5close_f (ierror)
I changed it to the following:
call h5open_f (ierror)
call h5pcreate_f(H5P_FILE_ACCESS_F,access_prop_id,ierror)
call h5pcreate_f(H5P_FILE_CREATE_F,create_prop_id,ierror)
call h5pset_fapl_mpio_f(access_prop_id,MPI_COMM_WORLD,MPI_INFO_NULL,ierror)
call h5fcreate_f(filename,H5F_ACC_TRUNC_F,file_id,ierror,create_prop_id,access_prop_id)
! creating groups, datasets, etc. then writing to them and closing them
call h5fclose_f (file_id,ierror)
call h5pclose_f (create_prop_id,ierror)
call h5pclose_f (access_prop_id,ierror)
call h5close_f (ierror)
and now I have the following error from HDF5:
HDF5-DIAG: Error detected in HDF5 (1.8.12) MPI-process 0:
#000: H5F.c line 2061 in H5Fclose(): decrementing file ID failed
major: Object atom
minor: Unable to close file
#001: H5I.c line 1479 in H5I_dec_app_ref(): can't decrement ID ref count
major: Object atom
minor: Unable to decrement reference count
#002: H5F.c line 1830 in H5F_close(): can't close file, there are objects still open
major: File accessibilty
minor: Unable to close file
I tried to close the property lists before the file, after the file, I tried not to close them, I always get this error.
Any idea where this comes from?
Thank you,
Matthieu Dorier
PhD student at ENS Rennes
http://people.irisa.fr/Matthieu.Dorier