Skip to content

Commit

Permalink
no longer turn on deflate for vars automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Sep 15, 2020
1 parent d0d4a98 commit 00104f8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/clib/pio_nc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2277,12 +2277,6 @@ PIOc_def_var(int ncid, const char *name, nc_type xtype, int ndims,
PLOG((3, "defined var ierr %d file->iotype %d", ierr, file->iotype));

#ifdef _NETCDF4
/* For netCDF-4 serial files, turn on compression for this
* variable, unless this file was opened through the netCDF
* integration feature (or is a scalar). */
if (!ierr && file->iotype == PIO_IOTYPE_NETCDF4C && !file->ncint_file && ndims)
ierr = nc_def_var_deflate(file->fh, varid, 0, 1, 1);

/* For netCDF-4 parallel files, set parallel access to collective. */
if (!ierr && file->iotype == PIO_IOTYPE_NETCDF4P)
ierr = nc_var_par_access(file->fh, varid, NC_COLLECTIVE);
Expand Down

0 comments on commit 00104f8

Please sign in to comment.