Skip to content

Commit 04d0627

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IO/ADIOS/ADIOS2File.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ size_t ADIOS2File::currentStep()
363363
{
364364
return *step_selection;
365365
}
366-
else if (nonpersistentEngine(m_impl->m_engineType))
366+
else if (m_mode == adios2::Mode::ReadRandomAccess)
367367
{
368-
return m_currentStep;
368+
return 0;
369369
}
370370
else
371371
{

0 commit comments

Comments
 (0)