summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_util.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-03-21 16:01:42 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-03-21 16:01:42 (GMT)
commitbd73819e2682bebcde6e9c3f1183acdb9608e6ce (patch)
tree436dc84e3f19b13b9ca7346d3fc74dceed22678a /tools/lib/h5diff_util.c
parent2db47ff504a58278019957f9e5bc446d58894fed (diff)
downloadhdf5-bd73819e2682bebcde6e9c3f1183acdb9608e6ce.zip
hdf5-bd73819e2682bebcde6e9c3f1183acdb9608e6ce.tar.gz
hdf5-bd73819e2682bebcde6e9c3f1183acdb9608e6ce.tar.bz2
[svn-r12126] Purpose:
bug fix Description: the compare check for the datatype sign was not done in the correct place, causing invalid comparisons to be made Solution: put it on the correct place Platforms tested: linux 32, 64 AIX Misc. update:
Diffstat (limited to 'tools/lib/h5diff_util.c')
-rw-r--r--tools/lib/h5diff_util.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/tools/lib/h5diff_util.c b/tools/lib/h5diff_util.c
index 32b3583..100057f 100644
--- a/tools/lib/h5diff_util.c
+++ b/tools/lib/h5diff_util.c
@@ -89,70 +89,6 @@ printf("Result: bytes_written=%ld, OUTBUFF_SIZE-outBuffOffset=%ld\n", (long)byte
va_end(ap);
}
-/*-------------------------------------------------------------------------
- * Function: print_pos
- *
- * Purpose: convert an array index position to matrix notation
- *
- * Return: pos matrix array
- *
- * Programmer: Pedro Vicente, pvn@ncsa.uiuc.edu
- *
- * Date: May 9, 2003
- *
- *-------------------------------------------------------------------------
- */
-void print_pos( int *ph,
- int per,
- hsize_t curr_pos,
- hsize_t *acc,
- hsize_t *pos,
- int rank,
- const char *obj1,
- const char *obj2 )
-{
- int i;
-
- /* print header */
- if ( *ph==1 )
- {
- *ph=0;
- if (per)
- {
- parallel_print("%-15s %-15s %-15s %-15s %-15s\n",
- "position",
- (obj1!=NULL) ? obj1 : " ",
- (obj2!=NULL) ? obj2 : " ",
- "difference",
- "relative");
- parallel_print("------------------------------------------------------------------------\n");
- }
- else
- {
- parallel_print("%-15s %-15s %-15s %-20s\n",
- "position",
- (obj1!=NULL) ? obj1 : " ",
- (obj2!=NULL) ? obj2 : " ",
- "difference");
- parallel_print("------------------------------------------------------------\n");
- }
- }
-
- for ( i = 0; i < rank; i++)
- {
- pos[i] = curr_pos/acc[i];
- curr_pos -= acc[i]*pos[i];
- }
- assert( curr_pos == 0 );
-
- parallel_print("[ " );
- for ( i = 0; i < rank; i++)
- {
-/* HDfprintf(stdout,"%Hu ", pos[i] ); */
- parallel_print("%"H5_PRINTF_LL_WIDTH"u ", (unsigned long_long)pos[i]);
- }
- parallel_print("]" );
-}
/*-------------------------------------------------------------------------
* Function: print_dims