add option to IOUtil and CarpetIOHDF5 to read datasets into different variables

Create issue
Issue #1414 closed
Roland Haas created an issue

Extents the file readers capabilities to not only take a cctk_iteration string but also a string alias. I value of

IO::filereader_vars = "hydrobase::vel[0]{alias=admbase::shiftx}"

weill read the datasets admbase::shiftx into the variable hydrobase::vel[0]. The idea is to be able to read variables of evolution thorns into postprocessing thorns.

The IOUtil patch adds the options to the parameter parsing routines and the CarpetIOHDF5 patches have CarpetIOHDF5 act on them.

Consider as a request for comments.

Keyword: CarpetIOHDF5

Comments (5)

  1. Roland Haas reporter
    • removed comment

    Updated Carpet patch with test case (uses input_initial_data files and just swaps phi and psi variables).

  2. Roland Haas reporter
    • changed status to resolved
    • removed comment

    CarpetIOHDF5 patches applied as git hash 984857f "CarpetIOHDF5: delay browsing of input files" and 7671fa7 "CarpetIOHDF5: support IO->alias option in reader" of Carpet.

  3. Log in to comment