diff --git a/source/adios2/core/Group.cpp b/source/adios2/core/Group.cpp index b0cc324384..41ee8e29f6 100644 --- a/source/adios2/core/Group.cpp +++ b/source/adios2/core/Group.cpp @@ -183,8 +183,7 @@ std::vector Group::AvailableAttributes() std::string variablePath = currentPath + groupDelimiter + v; variablePath = variablePath.substr( ADIOS_root.size() + 1, variablePath.size() - ADIOS_root.size()); - if (attributes.find(variablePath) != - attributes.end()) + if (attributes.find(variablePath) != attributes.end()) { available_attributes.push_back(v); } @@ -201,11 +200,11 @@ std::vector Group::AvailableGroups() std::set val = mapPtr->treeMap[currentPath]; { for (auto v : val) - { - if (mapPtr->treeMap.find(currentPath + groupDelimiter + v) != - mapPtr->treeMap.end()) - available_groups.push_back(v); - } + { + if (mapPtr->treeMap.find(currentPath + groupDelimiter + v) != + mapPtr->treeMap.end()) + available_groups.push_back(v); + } } return available_groups; } diff --git a/testing/adios2/hierarchy/TestHierarchicalReading.cpp b/testing/adios2/hierarchy/TestHierarchicalReading.cpp index 00eb3b4d77..92085e4070 100644 --- a/testing/adios2/hierarchy/TestHierarchicalReading.cpp +++ b/testing/adios2/hierarchy/TestHierarchicalReading.cpp @@ -2,6 +2,7 @@ * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. */ +#include #include #include