diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2004-01-22 23:11:39 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2004-01-22 23:11:39 (GMT) |
commit | f3113c02d5df98d554aee9fa23beba9f39ae9e2a (patch) | |
tree | 3c6abc56c09fc4d3e750c1d8ce34c77b57679359 /testpar/t_mdset.c | |
parent | cc171677031c2bff1ae60a45f510492733fe76d7 (diff) | |
download | hdf5-f3113c02d5df98d554aee9fa23beba9f39ae9e2a.zip hdf5-f3113c02d5df98d554aee9fa23beba9f39ae9e2a.tar.gz hdf5-f3113c02d5df98d554aee9fa23beba9f39ae9e2a.tar.bz2 |
[svn-r8096] Purpose:
Improvement.
Description:
Complete change of the verbose control to use the routines provided by
the test/libh5test.a.
Also put in a temporary fix for the H5Eset_auto() and H5Eget_auto()
so that the Compat code are isolated in one place rather than all over
the source file.
Platforms tested:
Tested in Eirene (parallel).
Misc. update:
Diffstat (limited to 'testpar/t_mdset.c')
-rw-r--r-- | testpar/t_mdset.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/testpar/t_mdset.c b/testpar/t_mdset.c index 9b4bfd1..e4ded5c 100644 --- a/testpar/t_mdset.c +++ b/testpar/t_mdset.c @@ -179,7 +179,7 @@ void compact_dataset(char *filename) for (i = 0; i < SIZE; i++) for (j = 0; j < SIZE; j++) if(inme[i][j] != outme[i][j]) - if(err_num++ < MAX_ERR_REPORT || verbose) + if(err_num++ < MAX_ERR_REPORT || VERBOSE_MED) printf("Dataset Verify failed at [%d][%d]: expect %f, got %f\n", i, j, outme[i][j], inme[i][j]); H5Pclose(plist); @@ -382,9 +382,9 @@ void dataset_fillvalue(const char *filename) for (k=0; k<(int)dset_dims[2]; k++) for (l=0; l<(int)dset_dims[3]; l++, twdata++, trdata++) if( *trdata != 0) - if(err_num++ < MAX_ERR_REPORT || verbose) + if(err_num++ < MAX_ERR_REPORT || VERBOSE_MED) printf("Dataset Verify failed at [%d][%d][%d][%d]: expect 0, got %d\n", i,j,k,l, *trdata); - if(err_num > MAX_ERR_REPORT && !verbose) + if(err_num > MAX_ERR_REPORT && !VERBOSE_MED) printf("[more errors ...]\n"); if(err_num){ printf("%d errors found in check_value\n", err_num); @@ -445,15 +445,15 @@ void dataset_fillvalue(const char *filename) for (l=0; l<(int)dset_dims[3]; l++, twdata++, trdata++) if(i<mpi_size) { if( *twdata != *trdata ) - if(err_num++ < MAX_ERR_REPORT || verbose) + if(err_num++ < MAX_ERR_REPORT || VERBOSE_MED) printf("Dataset Verify failed at [%d][%d][%d][%d]: expect %d, got %d\n", i,j,k,l, *twdata, *trdata); } /* end if */ else { if( *trdata != 0) - if(err_num++ < MAX_ERR_REPORT || verbose) + if(err_num++ < MAX_ERR_REPORT || VERBOSE_MED) printf("Dataset Verify failed at [%d][%d][%d][%d]: expect 0, got %d\n", i,j,k,l, *trdata); } /* end else */ - if(err_num > MAX_ERR_REPORT && !verbose) + if(err_num > MAX_ERR_REPORT && !VERBOSE_MED) printf("[more errors ...]\n"); if(err_num){ printf("%d errors found in check_value\n", err_num); @@ -1029,10 +1029,10 @@ int check_value(DATATYPE *indata, DATATYPE *outdata) for(i=chunk_origin[0]; i<(chunk_origin[0]+chunk_dims[0]); i++) for(j=chunk_origin[1]; j<(chunk_origin[1]+chunk_dims[1]); j++) { if( *indata != *outdata ) - if(err_num++ < MAX_ERR_REPORT || verbose) + if(err_num++ < MAX_ERR_REPORT || VERBOSE_MED) printf("Dataset Verify failed at [%ld][%ld](row %ld, col%ld): expect %d, got %d\n", (long)i, (long)j, (long)i, (long)j, *outdata, *indata); } - if(err_num > MAX_ERR_REPORT && !verbose) + if(err_num > MAX_ERR_REPORT && !VERBOSE_MED) printf("[more errors ...]\n"); if(err_num) printf("%d errors found in check_value\n", err_num); |