From c49889379dbd83882a155c956d057f0cd944d2a1 Mon Sep 17 00:00:00 2001 From: Xin Liang Date: Fri, 16 Jul 2021 12:14:50 -0500 Subject: [PATCH] fix a bug in omp version: inconsistent type for error bound in compression/decompression --- sz/include/szd_float.h | 2 +- sz/src/szd_float.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sz/include/szd_float.h b/sz/include/szd_float.h index d11bba44..9f58341e 100644 --- a/sz/include/szd_float.h +++ b/sz/include/szd_float.h @@ -35,7 +35,7 @@ size_t decompressDataSeries_float_2D_RA_block(float * data, float mean, size_t d int SZ_decompress_args_float(float** newData, size_t r5, size_t r4, size_t r3, size_t r2, size_t r1, unsigned char* cmpBytes, size_t cmpSize, int compressionType, float* hist_data); -size_t decompressDataSeries_float_3D_RA_block(float * data, float mean, size_t dim_0, size_t dim_1, size_t dim_2, size_t block_dim_0, size_t block_dim_1, size_t block_dim_2, double realPrecision, int * type, float * unpredictable_data); +size_t decompressDataSeries_float_3D_RA_block(float * data, float mean, size_t dim_0, size_t dim_1, size_t dim_2, size_t block_dim_0, size_t block_dim_1, size_t block_dim_2, float realPrecision, int * type, float * unpredictable_data); void decompressDataSeries_float_1D_decompression_given_areas_with_blocked_regression(float** data, size_t r1, size_t s1, size_t e1, unsigned char* comp_data); diff --git a/sz/src/szd_float.c b/sz/src/szd_float.c index 2c4a1f12..c44c8e1a 100644 --- a/sz/src/szd_float.c +++ b/sz/src/szd_float.c @@ -2845,7 +2845,7 @@ void getSnapshotData_float_4D(float** data, size_t r1, size_t r2, size_t r3, siz } } -size_t decompressDataSeries_float_3D_RA_block(float * data, float mean, size_t dim_0, size_t dim_1, size_t dim_2, size_t block_dim_0, size_t block_dim_1, size_t block_dim_2, double realPrecision, int * type, float * unpredictable_data){ +size_t decompressDataSeries_float_3D_RA_block(float * data, float mean, size_t dim_0, size_t dim_1, size_t dim_2, size_t block_dim_0, size_t block_dim_1, size_t block_dim_2, float realPrecision, int * type, float * unpredictable_data){ int intvRadius = exe_params->intvRadius; size_t dim0_offset = dim_1 * dim_2; size_t dim1_offset = dim_2;