/* * Copyright 2018, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ #include "ut_includes.h" void ut_chunk_print(int sort, ...); /** Test computation of applying a slice to a sequence of chunks */ int main(int argc, char** argv) { int stat = NC_NOERR; NCZSliceProjections slpv[NC_MAX_VAR_DIMS]; NCZOdometer* odom = NULL; Vardef* var = NULL; struct Common common; /* Initialize */ memset(&slpv,0,sizeof(slpv)); memset(&common,0,sizeof(common)); if((stat = ut_init(argc, argv, &utoptions))) goto done; /* Set the printer */ zutester.tests = UTEST_RANGE; zutester.print = ut_chunk_print; zutest = &zutester; var = nclistget(utoptions.vardefs,0); /* Fill in parts of common */ common.rank = var->rank; if((stat = NCZ_projectslices(var->dimsizes, var->chunksizes, utoptions.slices, &common, &odom))) goto done; #if 0 { int i; size64_t* mem = (size64_t*)printer.output; for(i=0;i