Skip to content

Commit

Permalink
CarpetX: only use BLOSC2 if compiled into ADIOS2
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaas80 committed Nov 2, 2024
1 parent 9dafbff commit 9afc540
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CarpetX/src/io_adios2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ void carpetx_adios2_t::OutputADIOS2(const cGH *const cctkGH,
// io.SetEngine("BP5");
engine = io.Open(filename, adios2::Mode::Write);

#ifdef ADIOS2_HAVE_BLOSC2
const adios2::Operator compressor =
adios.DefineOperator("Blosc2Compressor", adios2::ops::LosslessBlosc);
// Use a high compression rate and a byteshuffle filter
Expand All @@ -261,6 +262,7 @@ void carpetx_adios2_t::OutputADIOS2(const cGH *const cctkGH,
{adios2::ops::blosc::key::doshuffle,
adios2::ops::blosc::value::doshuffle_shuffle},
};
#endif

if (io_verbose)
CCTK_VINFO(" Defining variables...");
Expand Down

0 comments on commit 9afc540

Please sign in to comment.