From 7c28c8beb1d6d1317275e7fdbfd0c607c76b5488 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Fri, 15 Nov 2024 12:38:54 -0600 Subject: [PATCH] CarpetX: disable BLOSC in runtime options if ADIOS2 does not support it --- CarpetX/src/io_openpmd.cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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;