Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix availableChunks for READ_LINEAR in ADIOS2 #1586

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/IO/ADIOS/ADIOS2IOHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "openPMD/auxiliary/StringManip.hpp"
#include "openPMD/auxiliary/TypeTraits.hpp"

#include <adios2/common/ADIOSTypes.h>
franzpoeschel marked this conversation as resolved.
Show resolved Hide resolved
#include <algorithm>
#include <cctype> // std::tolower
#include <iostream>
Expand Down Expand Up @@ -1455,8 +1456,9 @@ void ADIOS2IOHandlerImpl::availableChunks(
std::string varName = nameOfVariable(writable);
auto engine = ba.getEngine(); // make sure that data are present
auto datatype = detail::fromADIOS2Type(ba.m_IO.VariableType(varName));
bool allSteps = ba.streamStatus ==
detail::BufferedActions::StreamStatus::ReadWithoutStream;
bool allSteps = ba.m_mode != adios2::Mode::Read &&
ba.streamStatus ==
detail::BufferedActions::StreamStatus::ReadWithoutStream;
switchAdios2VariableType<detail::RetrieveBlocksInfo>(
datatype,
parameters,
Expand Down
Loading