ornladios / ADIOS

The old ADIOS 1.x code repository. Look for ADIOS2 for new repo
https://csmd.ornl.gov/adios
Other
54 stars 41 forks source link

phdf5 fails if variable name includes path #45

Open jhgoebbert opened 9 years ago

jhgoebbert commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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