Skip to content

Commit 61816ba

Browse files
committed
1. update the logic to check data version
2. dispatcher logic change. SZ3 will enter lossless only mode automatically when needed 3. bug fix, see comments in Lossless_zstd.hpp
1 parent 9bd968f commit 61816ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/SZ3/api/impl/SZImplOMP.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ size_t SZ_compress_OMP(Config &conf, const T *data, uchar *cmpData, size_t cmpCa
5252
size_t num_t_base = std::accumulate(++it, dims_t.end(), static_cast<size_t>(1), std::multiplies<size_t>());
5353
size_t num_t = dims_t[0] * num_t_base;
5454

55-
T *data_t = data + lo * num_t_base;
55+
const T *data_t = data + lo * num_t_base;
5656
// std::vector<T> data_t(data + lo * num_t_base, data + lo * num_t_base + num_t);
5757
if (conf.errorBoundMode != EB_ABS) {
5858
auto minmax = std::minmax_element(data_t, data_t + num_t);

0 commit comments

Comments
 (0)