diff --git a/cf.cmake b/cf.cmake index a42b6e8dd..213de6c4b 100644 --- a/cf.cmake +++ b/cf.cmake @@ -3,6 +3,8 @@ # Is netcdf-4 and/or DAP enabled? NC4=1 #DAP=1 +CDF5=1 +#HDF4=1 case "$1" in vs|VS) VS=1 ;; @@ -31,19 +33,14 @@ FLAGS="-DCMAKE_PREFIX_PATH=c:/tools/nccmake" fi FLAGS="$FLAGS -DCMAKE_INSTALL_PREFIX=/tmp/netcdf" -if test "x$DAP" = x ; then -FLAGS="$FLAGS -DENABLE_DAP=false" -else -FLAGS="$FLAGS -DENABLE_DAP=true" -fi -if test "x$NC4" = x ; then -FLAGS="$FLAGS -DENABLE_NETCDF_4=false" -fi +if test "x$DAP" = x ; then FLAGS="$FLAGS -DENABLE_DAP=false"; fi +if test "x$NC4" = x ; then FLAGS="$FLAGS -DENABLE_NETCDF_4=false"; fi +if test "x$CDF5" != x ; then FLAGS="$FLAGS -DENABLE_CDF5=true"; fi +if test "x$HDF4" != x ; then FLAGS="$FLAGS -DENABLE_HDF4=true"; fi FLAGS="$FLAGS -DENABLE_CONVERSION_WARNINGS=false" FLAGS="$FLAGS -DENABLE_DAP_REMOTE_TESTS=true" FLAGS="$FLAGS -DENABLE_TESTS=true" FLAGS="$FLAGS -DENABLE_EXAMPLES=false" -#FLAGS="$FLAGS -DENABLE_HDF4=true" FLAGS="$FLAGS -DENABLE_DYNAMIC_LOADING=false" FLAGS="$FLAGS -DENABLE_WINSOCK2=false" #FLAGS="$FLAGS -DENABLE_LARGE_FILE_TESTS=true" diff --git a/nc_test4/tst_filter.sh b/nc_test4/tst_filter.sh index 87d44d935..e7b010c30 100755 --- a/nc_test4/tst_filter.sh +++ b/nc_test4/tst_filter.sh @@ -3,6 +3,7 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi . ../test_common.sh +set -x set -e # Which test cases to exercise @@ -101,6 +102,7 @@ echo "*** Testing dynamic filters using nccopy" rm -f ./unfiltered.nc ./filtered.nc ./filtered.dump ./tmp ${NCGEN} -4 -lb -o unfiltered.nc ${srcdir}/unfiltered.cdl ${NCCOPY} -F "/g/var,307,9,4" unfiltered.nc filtered.nc +${NCDUMP} -sh filtered.nc ${NCDUMP} -s filtered.nc > ./tmp # Remove irrelevant -s output sclean ./tmp ./filtered.dump diff --git a/ncdump/nccopy.c b/ncdump/nccopy.c index 1a664ce5e..52bd29402 100644 --- a/ncdump/nccopy.c +++ b/ncdump/nccopy.c @@ -1985,6 +1985,20 @@ main(int argc, char**argv) error("output would overwrite input"); } + { int i,j; + for(i=0;iparams[j]); + } + fprintf(stderr,"}\n"); + fflush(stderr); + } + } + if(copy(inputfile, outputfile) != NC_NOERR) exit(EXIT_FAILURE); exit(EXIT_SUCCESS);