mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
add some debugging help to fix snapshot error
This commit is contained in:
parent
83675ef257
commit
c417a58747
6
cf
6
cf
@ -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"
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user