mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Merge branch 'nc4var.c' of https://github.com/wkliao/netcdf-c into gh2261.wif
This commit is contained in:
commit
6649d74ff8
@ -481,7 +481,7 @@ NC4_var_par_access(int ncid, int varid, int par_access)
|
||||
/* If zlib, shuffle, or fletcher32 filters are in use, then access
|
||||
* must be collective. Fail an attempt to set such a variable to
|
||||
* independent access. */
|
||||
if (nclistlength((NClist*)var->filters) > 0)
|
||||
if (nclistlength((NClist*)var->filters) > 0 &&
|
||||
par_access == NC_INDEPENDENT)
|
||||
return NC_EINVAL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user