Skip to content

Commit

Permalink
cleaned up simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 6, 2020
1 parent 39d4c79 commit 8f40a3a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/cunit/test_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,28 +108,6 @@ int main(int argc, char **argv)
/* Define a var. */
if ((ret = PIOc_def_var(ncid, VAR_NAME, PIO_INT, NDIM2, dimid, &varid)))
ERR(ret);

/* Try to turn on deflate, it will only work for netCDF-4
* serial, and perhaps netCDF-4 parallel. */
ret = PIOc_def_var_deflate(ncid, varid, 0, 1, 1);
if (flavor[f] == PIO_IOTYPE_PNETCDF || flavor[f] == PIO_IOTYPE_NETCDF)
{
/* Pnetcdf and netcdf classic formats do not support
* compression. An error will be returned. */
if (ret != PIO_ENOTNC4)
ERR(ERR_WRONG);
}
/* else if (flavor[f] == PIO_IOTYPE_NETCDF4P) */
/* { */
/* if (ret != NC_EINVAL) */
/* ERR(ERR_WRONG); */
/* } */
else
{
if (ret)
ERR(ret);
}

if ((ret = PIOc_enddef(ncid)))
ERR(ret);

Expand Down

0 comments on commit 8f40a3a

Please sign in to comment.