Skip to content

Commit

Permalink
Blosc: Warn Unknown Parameters
Browse files Browse the repository at this point in the history
Warn the user if unknown parameters are passed to the blosc
compressor. Otherwise, typos get quickly unnoticed.
  • Loading branch information
ax3l committed May 25, 2021
1 parent 24ab5dc commit 5c0de15
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/adios2/operator/compress/CompressBlosc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ 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 5c0de15

Please sign in to comment.