Skip to content

Commit

Permalink
fix multiple bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Sep 29, 2021
1 parent 22f64e9 commit 62b94a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/adios2/operator/compress/CompressLibPressio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ size_t CompressLibPressio::Compress(const char *dataIn, const Dims &blockStart,
size_t bufferOutOffset = 0;

// Universal operator metadata
PutParameter(bufferOut, bufferOutOffset, OperatorType::Sz);
PutParameter(bufferOut, bufferOutOffset, OperatorType::LIBPRESSIO);
PutParameter(bufferOut, bufferOutOffset, bufferVersion);
PutParameter(bufferOut, bufferOutOffset, static_cast<uint16_t>(0));
// Universal operator metadata end
Expand Down
8 changes: 4 additions & 4 deletions source/adios2/operator/compress/CompressPNG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ size_t CompressPNG::Compress(const char *dataIn, const Dims &blockStart,
const uint8_t bufferVersion = 1;

// Universal operator metadata
PutParameter(bufferOut, bufferOutOffset, OperatorType::BLOSC);
PutParameter(bufferOut, bufferOutOffset, OperatorType::PNG);
PutParameter(bufferOut, bufferOutOffset, bufferVersion);
PutParameter(bufferOut, bufferOutOffset, static_cast<uint16_t>(0));
// Universal operator metadata end
Expand Down Expand Up @@ -181,11 +181,11 @@ size_t CompressPNG::Compress(const char *dataIn, const Dims &blockStart,
png_destroy_write_struct(&pngWrite, &pngInfo);

PutParameter(bufferOut, paramOffset, destInfo.Offset);
PutParameter(bufferOut, bufferOutOffset,
PutParameter(bufferOut, paramOffset,
static_cast<uint8_t>(PNG_LIBPNG_VER_MAJOR));
PutParameter(bufferOut, bufferOutOffset,
PutParameter(bufferOut, paramOffset,
static_cast<uint8_t>(PNG_LIBPNG_VER_MINOR));
PutParameter(bufferOut, bufferOutOffset,
PutParameter(bufferOut, paramOffset,
static_cast<uint8_t>(PNG_LIBPNG_VER_RELEASE));

return destInfo.Offset;
Expand Down
2 changes: 1 addition & 1 deletion source/adios2/operator/compress/CompressZFP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ size_t CompressZFP::Compress(const char *dataIn, const Dims &blockStart,
size_t bufferOutOffset = 0;

// Universal operator metadata
PutParameter(bufferOut, bufferOutOffset, OperatorType::Sz);
PutParameter(bufferOut, bufferOutOffset, OperatorType::ZFP);
PutParameter(bufferOut, bufferOutOffset, bufferVersion);
PutParameter(bufferOut, bufferOutOffset, static_cast<uint16_t>(0));
// Universal operator metadata end
Expand Down

0 comments on commit 62b94a7

Please sign in to comment.