Skip to content

Commit

Permalink
Guard against ADIOS2 v2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Jun 21, 2024
1 parent 7bc94e7 commit 66f15aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/IO/ADIOS/ADIOS2IOHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1512,8 +1512,12 @@ adios2::Mode ADIOS2IOHandlerImpl::adios2AccessMode(std::string const &fullPath)
constexpr std::array<pair_t, 4> modeNames{
pair_t{"write", adios2::Mode::Write},
pair_t{"read", adios2::Mode::Read},
pair_t{"append", adios2::Mode::Append},
pair_t{"readrandomaccess", adios2::Mode::ReadRandomAccess}};
pair_t{"append", adios2::Mode::Append}
#if openPMD_HAS_ADIOS_2_8
,
pair_t{"readrandomaccess", adios2::Mode::ReadRandomAccess}
#endif
};
for (auto const &[name, mode] : modeNames)
{
if (name == access_mode_string)
Expand Down

0 comments on commit 66f15aa

Please sign in to comment.