Skip to content

Commit

Permalink
CarpetX: disable BLOSC in runtime options if ADIOS2 does not support it
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett authored and rhaas80 committed Nov 26, 2024
1 parent a5ef84c commit 7c28c8b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CarpetX/src/io_openpmd.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

#include <openPMD/openPMD.hpp>

#ifdef HAVE_CAPABILITY_ADIOS2
#include <adios2.h>
#endif

#if defined _OPENMP
#include <omp.h>
#elif defined __HIPCC__
Expand Down Expand Up @@ -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": {
Expand All @@ -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;
Expand Down

0 comments on commit 7c28c8b

Please sign in to comment.