Skip to content

Allow adios2_inquire_group_variables to list variables in the root group #2729

Open
@eschnett

Description

The function adios2_inquire_group_variables can list variables in subgroups, but not in the root group.

This might not be intentional; this could be a side-effect of the lines

                auto pos = curr.rfind("/");
                if (pos <= prefix_size)
                {
                    names.insert(curr);
                }

which check whether the found object is a leaf or a branch. Extending the if condition to pos <= prefix_size || pos == std::string::npos would (I think) allow using the empty string "" to query the root group.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions