Skip to content

Commit

Permalink
Merge pull request #1753 from NCAR/ejh_no_compress
Browse files Browse the repository at this point in the history
no longer turn on deflate for vars automatically
  • Loading branch information
edwardhartnett authored Sep 15, 2020
2 parents d0d4a98 + 00104f8 commit fd8b8c1
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 fd8b8c1

Please sign in to comment.