Skip to content

Commit 1de01de

Browse files
committed
Fix old implementation
in case we want to keep it
1 parent 3741a7e commit 1de01de

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/IO/ADIOS/ADIOS2IOHandler.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#include <stdexcept>
5353
#include <string>
5454
#include <type_traits>
55+
#include <variant>
5556

5657
namespace openPMD
5758
{
@@ -1782,7 +1783,10 @@ void ADIOS2IOHandlerImpl::listPaths(
17821783
fileData.availableAttributesPrefixed(tablePrefix);
17831784
if (fileData.streamStatus ==
17841785
detail::ADIOS2File::StreamStatus::DuringStep ||
1785-
fileData.stepSelection().has_value())
1786+
(fileData.stepSelection().has_value() &&
1787+
std::holds_alternative<
1788+
detail::AdiosAttributes::RandomAccess_t>(
1789+
fileData.attributes().m_data)))
17861790
{
17871791
auto currentStep = fileData.currentStep();
17881792
auto &IO = fileData.m_IO;

0 commit comments

Comments
 (0)