Skip to content

Commit

Permalink
now testind def_var_endian
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Sep 3, 2020
1 parent 9c88c0e commit f97e666
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/ncint/tst_var_compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ run_var_compress_test(int my_rank, int ntasks, int iosysid)
if (nc_def_var(ncid, VAR_NAME, NC_INT, NDIM3, dimid, &varid)) PERR;
if (nc_def_var_deflate(ncid, varid, 1, 1, DEFLATE_LEVEL)) PERR;
if (nc_def_var_chunking(ncid, varid, NC_CHUNKED, chunksizes)) PERR;
if (nc_def_var_endian(ncid, varid, NC_ENDIAN_BIG)) PERR;

/* Calculate a decomposition for distributed arrays. */
elements_per_pe = DIM_LEN_X * DIM_LEN_Y / ntasks;
Expand Down Expand Up @@ -84,10 +85,8 @@ run_var_compress_test(int my_rank, int ntasks, int iosysid)
/* Check the chunking. */
if (nc_inq_var_chunking(ncid, 0, &storage_in, chunksizes_in)) PERR;
for (d = 0; d < NDIM3; d++)
{
printf("chunksizes_in[%d] = %ld\n", d, chunksizes_in[d]);
/* if (chunksizes_in[0] != chunksizes[0]) PERR; */
}
if (chunksizes_in[d] != chunksizes[d]) PERR;
if (storage_in != NC_CHUNKED) PERR;

/* Read distributed arrays. */
if (!(data_in = malloc(elements_per_pe * sizeof(int)))) PERR;
Expand Down

0 comments on commit f97e666

Please sign in to comment.