Skip to content

Commit

Permalink
Use deflate filter in test, which is always present
Browse files Browse the repository at this point in the history
Fixes Unidata#134

BZIP2 filter might not be available depending on how HDF5 was compiled
  • Loading branch information
ZedThree committed Oct 19, 2023
1 parent 88650e3 commit eedcd0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cxx4/test_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <ncFile.h>
#include <ncVar.h>
#include <ncException.h>
#include <netcdf_filter.h>
#include <string>
#include <netcdf>
#include "test_utilities.h"
Expand Down Expand Up @@ -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...";
Expand Down

0 comments on commit eedcd0c

Please sign in to comment.