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 Jul 17, 2024
1 parent 06a1469 commit dcdb8e3
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 @@ -1514,8 +1514,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 dcdb8e3

Please sign in to comment.