mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-13 17:18:08 +08:00
Merge pull request #1714 from NOAA-GSD/ejh_deflate
added demonstration of nc_def_var_deflate() issue
This commit is contained in:
commit
4bd52474f0
@ -831,6 +831,11 @@ main(int argc, char **argv)
|
||||
if (nc_def_dim(ncid, DIM4_NAME, DIM4_LEN, &dimids[0])) ERR;
|
||||
if (dimids[0] != 0) ERR;
|
||||
if (nc_def_var(ncid, VAR_NAME4, NC_INT64, NDIMS4, dimids, &varid)) ERR;
|
||||
/* THis next line should work, setting the deflate to 4, only to
|
||||
* have it changed by the next call to DELFLATE_LEVEL (6). But
|
||||
* in 4.7.4 behavior changed. In 4.7.4 this line causes deflate
|
||||
* level to be set to 4 and the following call to be ignored. */
|
||||
/* if (nc_def_var_deflate(ncid, varid, NC_NOSHUFFLE, 1, DEFLATE_LEVEL_4)) ERR; */
|
||||
if (nc_def_var_deflate(ncid, varid, NC_NOSHUFFLE, 1, DEFLATE_LEVEL)) ERR;
|
||||
if (varid != 0) ERR;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user