mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
fix parallel filter error discovered by Hartnett
This commit is contained in:
parent
a3a3e15cb1
commit
10d227fc1b
@ -303,11 +303,14 @@ NC4_filter_actions(int ncid, int varid, int op, NC_Filterobject* args)
|
|||||||
if((stat = NC4_hdf5_addfilter(var,!FILTERACTIVE,id,nparams,params)))
|
if((stat = NC4_hdf5_addfilter(var,!FILTERACTIVE,id,nparams,params)))
|
||||||
goto done;
|
goto done;
|
||||||
#ifdef USE_PARALLEL
|
#ifdef USE_PARALLEL
|
||||||
#ifndef HDF5_SUPPORTS_PAR_FILTERS
|
#ifdef HDF5_SUPPORTS_PAR_FILTERS
|
||||||
/* Switch to collective access. HDF5 requires collevtive access
|
/* Switch to collective access. HDF5 requires collevtive access
|
||||||
* for filter use with parallel I/O. */
|
* for filter use with parallel I/O. */
|
||||||
if (h5->parallel)
|
if (h5->parallel)
|
||||||
var->parallel_access = NC_COLLECTIVE;
|
var->parallel_access = NC_COLLECTIVE;
|
||||||
|
#else
|
||||||
|
if (h5->parallel)
|
||||||
|
return NC_EINVAL;
|
||||||
#endif /* HDF5_SUPPORTS_PAR_FILTERS */
|
#endif /* HDF5_SUPPORTS_PAR_FILTERS */
|
||||||
#endif /* USE_PARALLEL */
|
#endif /* USE_PARALLEL */
|
||||||
} break;
|
} break;
|
||||||
|
Loading…
Reference in New Issue
Block a user