diff --git a/CarpetX/src/io_openpmd.cxx b/CarpetX/src/io_openpmd.cxx index 0a20b643a..988d0ea9a 100644 --- a/CarpetX/src/io_openpmd.cxx +++ b/CarpetX/src/io_openpmd.cxx @@ -16,6 +16,10 @@ #include +#ifdef HAVE_CAPABILITY_ADIOS2 +#include +#endif + #if defined _OPENMP #include #elif defined __HIPCC__ @@ -116,6 +120,7 @@ constexpr openPMD::IterationEncoding iterationEncoding = openPMD::IterationEncoding::fileBased; // TODO: Set number of threads? +#ifdef ADIOS2_HAVE_BLOSC2 const std::string options = R"EOS( { "adios2": { @@ -139,6 +144,18 @@ R"EOS( } } )EOS"; +#else +const std::string options = R"EOS( + { + "adios2": { + "dataset": { + "operators": [ + ] + } + } + } +)EOS"; +#endif constexpr bool input_ghosts = false; constexpr bool output_ghosts = false;