From 2f27bc3df132121e264d92e373bf66b1cc010662 Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Sun, 21 Feb 2021 02:45:34 -0500 Subject: [PATCH] fixed mgard dimensions --- source/adios2/operator/compress/CompressMGARD.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/adios2/operator/compress/CompressMGARD.cpp b/source/adios2/operator/compress/CompressMGARD.cpp index 9cae8ecd01..6aecb0f69a 100644 --- a/source/adios2/operator/compress/CompressMGARD.cpp +++ b/source/adios2/operator/compress/CompressMGARD.cpp @@ -55,9 +55,9 @@ size_t CompressMGARD::Compress(const void *dataIn, const Dims &dimensions, } int r[3]; - r[0] = 0; - r[1] = 0; - r[2] = 0; + r[0] = 1; + r[1] = 1; + r[2] = 1; for (size_t i = 0; i < ndims; i++) { @@ -125,9 +125,9 @@ size_t CompressMGARD::Decompress(const void *bufferIn, const size_t sizeIn, const size_t ndims = dimensions.size(); int r[3]; - r[0] = 0; - r[1] = 0; - r[2] = 0; + r[0] = 1; + r[1] = 1; + r[2] = 1; for (size_t i = 0; i < ndims; i++) {