missing ifdef
@@ -129,7 +129,7 @@ printvector(int rank, size_t* vec)
return strdup(svec);
}
-#ifdef USE_HDF5
+#ifdef HDF5_SUPPORTS_PAR_FILTERS
void
hdf5_setoffset(Odometer* odom, size_t* chunksizes, hsize_t* offset)
{
@@ -149,11 +149,9 @@ hdf5(const char* file_name, const char* var_name, int debug,
size_t chunkprod;
Odometer* odom = NULL;
hsize_t offset[NC_MAX_VAR_DIMS];
-#ifdef HDF5_SUPPORTS_PAR_FILTERS
int r;
hid_t dxpl_id = H5P_DEFAULT; /*data transfer property list */
unsigned int filter_mask = 0;
-#endif
if(debug) {
H5Eset_auto2(H5E_DEFAULT,(H5E_auto2_t)H5Eprint,stderr);
@@ -352,7 +350,7 @@ main(int argc, char** argv)
if((stat=nc_close(ncid))) usage(stat);
switch (format) {
-#ifdef USE_HDF5
+#ifdef HDF5_SUPPORTS_PAR_FILTERS
case NC_FORMATX_NC_HDF5:
hdf5(file_name, var_name, debug, rank, dimlens, chunklens, chunkcounts);
break;
