From eedcd0c1d2a0d0b3c1408c255966ab58b8d99c17 Mon Sep 17 00:00:00 2001 From: Peter Hill Date: Thu, 19 Oct 2023 11:57:03 +0100 Subject: [PATCH] Use deflate filter in test, which is always present Fixes #134 BZIP2 filter might not be available depending on how HDF5 was compiled --- cxx4/test_filter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cxx4/test_filter.cpp b/cxx4/test_filter.cpp index abcd367..db4c17c 100644 --- a/cxx4/test_filter.cpp +++ b/cxx4/test_filter.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include "test_utilities.h" @@ -51,7 +52,7 @@ int main() latVar.setChunking(NcVar::nc_CHUNKED,chunks); cout<<"Setting Filter...."; - latVar.setFilter(BZIP2_ID,BZIP2_NPARAMS,&level); + latVar.setFilter(H5Z_FILTER_DEFLATE, BZIP2_NPARAMS, &level); cout<<"Success\n"; cout<<"Getting filter...";