ADIOS icon indicating copy to clipboard operation
ADIOS copied to clipboard

phdf5 fails if variable name includes path

Open jhgoebbert opened this issue 11 years ago • 2 comments

a call of call adios_write (adios_handle, "/settings/chalt", chalt, adios_err) results in error as variable name includes the path: PHDF5 ERROR: can not create scalar /settings/chalt in hw_var!

check src/write/adios_phdf5.c:line 717 pvar->name == '/settings/chalt' instead of 'chalt'

jhgoebbert avatar Jan 08 '15 18:01 jhgoebbert

In the user manual 1.8.0 chapter 5.3.2 it reads: "Optional: path - Obsolete. HDF-5-style path for the variable. Since name may contain the path, there is no need to use this attribute anymore."

This is currently not correct: ADIOS tries to create a dataset with name=var->name in src/write/adios_phdf5.c:line 710, but HDF5 does not allow "/" in dataset names.

jhgoebbert avatar Jan 08 '15 19:01 jhgoebbert

possible fix could be in adios_internals.c:line 1713 looking like this: fullpath = path+name name = get_name(fullpath) path = get_path(fullpath)

jhgoebbert avatar Jan 08 '15 19:01 jhgoebbert