I am relatively new to HDF5, apologies if this is too basic. But I want to know if there is a way to write hdf5 files into a different directory than the current directory. I am trying the snippet below for example,
write(filename,'(a13,i5.5,a3)') '/data/swarms-',outnr,'.h5' call h5open_f(error) call h5fcreate_f(filename, H5F_ACC_TRUNC_F, file% id, file% error) ! creates file
When I do the same it throws an error that it is not able to create the file. I would be grateful if there is a way for the same.