Skip to content

Commit

Permalink
Merge pull request #2715 from ax3l/topic-warnBloscUnknownParam
Browse files Browse the repository at this point in the history
Blosc: Warn Unknown Parameters
  • Loading branch information
JasonRuonanWang authored May 29, 2021
2 parents a5c292d + 806a553 commit f54ce23
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/adios2/operator/compress/CompressBlosc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ extern "C" {
#include <algorithm>
#include <cassert>
#include <cstring>
#include <iostream>

namespace adios2
{
Expand Down Expand Up @@ -140,6 +141,12 @@ size_t CompressBlosc::Compress(const void *dataIn, const Dims &dimensions,
if (thresholdSize < 128u)
thresholdSize = 128u;
}
else
{
std::cerr << "ADIOS WARNING: Unknown parameter keyword '" << key
<< "' with value '" << value
<< "' passed to Blosc compression operator." << std::endl;
}
}

// write header to detect new compression format (set first 8 byte to zero)
Expand Down

0 comments on commit f54ce23

Please sign in to comment.