Skip to content

Commit e36b332

Browse files
committed
Always use CurrentStep() in mode::Read
1 parent 7491a9b commit e36b332

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/IO/ADIOS/ADIOS2File.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "openPMD/auxiliary/Environment.hpp"
2929
#include "openPMD/auxiliary/StringManip.hpp"
3030

31+
#include <adios2/common/ADIOSTypes.h>
3132
#include <optional>
3233
#include <stdexcept>
3334

@@ -363,9 +364,9 @@ size_t ADIOS2File::currentStep()
363364
{
364365
return *step_selection;
365366
}
366-
else if (nonpersistentEngine(m_impl->m_engineType))
367+
else if (m_mode == adios2::Mode::ReadRandomAccess)
367368
{
368-
return m_currentStep;
369+
return 0;
369370
}
370371
else
371372
{

0 commit comments

Comments
 (0)