add some debugging help to fix snapshot error

This commit is contained in:
Dennis Heimbigner 2012-03-30 21:51:31 +00:00
parent 83675ef257
commit c417a58747
2 changed files with 11 additions and 3 deletions

6
cf
View File

@ -19,7 +19,7 @@ cmds=""
#cmds="all"
#cmds="all check"
#cmds="all dist"
#cmds="all distcheck"
cmds="all distcheck"
#cmds="$cmds install"
fi
@ -124,9 +124,9 @@ FLAGS="$FLAGS --disable-pnetcdf"
#FLAGS="$FLAGS --enable-cxx-4"
#FLAGS="$FLAGS --enable-dap-long-tests"
#FLAGS="$FLAGS --enable-ffio"
#FLAGS="$FLAGS --enable-benchmarks"
FLAGS="$FLAGS --enable-benchmarks"
#FLAGS="$FLAGS --enable-extra-tests"
#FLAGS="$FLAGS --enable-large-file-tests"
FLAGS="$FLAGS --enable-large-file-tests"
FLAGS="$FLAGS --enable-logging"
FLAGS="$FLAGS --disable-shared"

View File

@ -58,7 +58,15 @@ main(int argc, char **argv)
if (nc_def_dim(ncid, "d1", D1, &dimids[1])) ERR;
if (nc_def_dim(ncid, "d2", D2, &dimids[2])) ERR;
if (nc_def_var(ncid, LARGE_VAR_NAME, NC_FLOAT, NDIMS3, dimids, &varid)) ERR;
#ifndef NOBUG
{int status;
status = nc_def_var_chunking(ncid, varid, NC_CHUNKED, chunk_sizes);
if(status)
printf("nc_def_var_chunking fail: %d: %s\n",status,nc_strerror(status));
}
#else
if (nc_def_var_chunking(ncid, varid, NC_CHUNKED, chunk_sizes)) ERR;
#endif
if (nc_enddef(ncid)) ERR;
/* Write the data one slice at a time. */