From 77d27faaef9f1beaa0b8ac81d5a6e0278e894593 Mon Sep 17 00:00:00 2001 From: Dennis Heimbigner Date: Tue, 30 Apr 2013 18:34:31 +0000 Subject: [PATCH] suppress useless test output from test_nstride_cached.c --- ncdap_test/test_nstride_cached.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ncdap_test/test_nstride_cached.c b/ncdap_test/test_nstride_cached.c index d82cdd432..b84d3da3d 100644 --- a/ncdap_test/test_nstride_cached.c +++ b/ncdap_test/test_nstride_cached.c @@ -96,16 +96,15 @@ main() ncstatus = nc_inq_varid(ncid, "lon_rho", &varid); - printf("varid = %d\n", varid); - printf("ncid = %d\n", ncid); - ndim=2; +if(verbose) { printf(" \n"); printf("********************\n"); printf("Read lon_rho data w/o strides\n"); printf(" \n"); +} start[0] = 0; start[1] = 0; @@ -147,15 +146,14 @@ if(verbose) { ncstatus = nc_inq_varid(ncid, "lat_rho", &varid); - printf("varid = %d\n", varid); - printf("ncid = %d\n", ncid); - ndim=2; +if(verbose) { printf(" \n"); printf("********************\n"); printf("Read lat_rho data w/o strides\n"); printf(" \n"); +} start[0] = 0; start[1] = 0; @@ -195,9 +193,11 @@ if(verbose) { /* close and reopen the dataset, then the below read is correct */ +if(verbose) { printf(" \n"); printf("********************\n"); printf("Close and reopen the dataset\n"); +} ncstatus = nc_close (ncid); ncstatus = nc_open(URL, NC_NOWRITE, &ncid); @@ -207,10 +207,12 @@ if(verbose) { ncstatus = nc_inq_varid(ncid, "lon_rho", &varid); +if(verbose) { printf(" \n"); printf("********************\n"); printf("Read a subset of lon_rho data with strides\n"); printf(" \n"); +} start[0] = 250; start[1] = 704;