Commit Graph

1354 Commits

Author SHA1 Message Date
Albert Cheng
a7cac4a194 [svn-r13264] Updated Makefile.am with new THG copyright notice.
Ran reconfigure to generate the Makefile.in files.
2007-02-07 17:28:58 -05:00
Albert Cheng
84fa11d2c7 [svn-r13261] Updated copyright notices.
Tested: visual inspection as they are all just comments.
2007-02-07 14:56:21 -05:00
Albert Cheng
ed7d456e51 [svn-r13253] Updated all C and C++ style source code files with the THG copyright notice.
Tested platform:
Kagiso only since it is only a comment block change.  If it works in one
machine, it should work in all, I hope.  Still need to check the parallel
build on copper.
2007-02-07 09:56:24 -05:00
Quincey Koziol
d47a060445 [svn-r13250] Description:
Add support for inserting attributes into creation order index.

	Also, update support for dense link & attribute storage in h5debug.

Tested on:
	FreeBSD/32 6.2 (duty)
	Mac OS X/32 10.4.8 (amazon)
2007-02-06 21:18:17 -05:00
James Laird
59eccdaf69 [svn-r13181] Added a configure check to prevent a failure on Cygwin.
It seems that while Cygwin supports the time command, it has trouble with
the syntax
srcdir="../../hdf5/test" time ./testhdf5
and complains.
The solution is to test the above case in configure and not to use the time
command if it fails; Cygwin is fine with
srcdir="../../hdf5/test"  ./testhdf5

Tested on Cygwin and kagiso.  This feature shouldn't be a major compatibility
problem since every platform but Cygwin is already fine with the current
syntax.
2007-01-23 12:29:45 -05:00
Pedro Vicente Nunes
ac110a8603 [svn-r13179]
replaced the path to XML schema from NCSA page to hdfgroup.org
2007-01-23 10:39:24 -05:00
Peter Cao
0055ec4a71 [svn-r13164] Add nullmsg flag for testing only 2007-01-22 12:04:38 -05:00
Peter Cao
416f0145ab [svn-r13160] Fixed help information to use stdout instead of stderr. 2007-01-19 15:24:30 -05:00
James Laird
632773727c [svn-r13159] Added h5debug support for shared message structures.
Tests run on juniper, kagiso, smirom.  h5debug run manually on sample files on
Windows, juniper, and kagiso.
2007-01-19 13:51:03 -05:00
Raymond Lu
77ce08c356 [svn-r13139] Fixed the MULTI problem (Bug #731) that corrupted the data. The problem
came from the EOA for the whole MULTI file.  It's taken out because it's
meaningless for MULTI file.  Instead, each individual file has its EOA.
2007-01-12 15:29:43 -05:00
Pedro Vicente Nunes
ba14f83846 [svn-r13134]
New version of the function h5tools_dump_simple_subset, to display subsetting. The new algorithm is: 
Introduced an outer loop for cases where dimensionality is greater 
 than 2D. In each iteration a 2D block is displayed by rows in a inner
 loop. The remainning slower dimensions above the first 2 are incremented 
 one at a time in the outer loop

Note: when blocks are introduced, the display is not correct. This is a bug that requires an improvement of the algorithm.
2007-01-10 14:15:16 -05:00
Pedro Vicente Nunes
56407cde0e [svn-r13133]
modified the format for the printing of reference information for a string, related to the same change in h5dump to display the name of the referenced dataset
2007-01-10 13:44:30 -05:00
Pedro Vicente Nunes
2a30e511b9 [svn-r13132]
Fixed #720 h5dump: improve how region references are displayed. h5dump now uses the new API function H5Rget_name to display the name of the dataset referenced instead of its ID. Added a case to the script test file
2007-01-10 11:24:27 -05:00
Pedro Vicente Nunes
5b16810ac2 [svn-r13106] clean code, removed some debugging code 2007-01-04 10:28:36 -05:00
Pedro Vicente Nunes
a75186cc51 [svn-r13078]
one more fix related to bug 551. the printing of the subsetting parameters was not using the new hsize_t printing format

correct output is now

[pvn@kagiso ad]$ /home1/pvn/build_hdf5/tools/h5dump/h5dump -d /a -s "0,8899716890" -c "1,10" jasp_char.h5
HDF5 "jasp_char.h5" {
DATASET "/a" {
   DATATYPE  H5T_STD_I8LE
   DATASPACE  SIMPLE { ( 20, 8899716900 ) / ( 20, 8899716900 ) }
   SUBSET {
      START ( 0, 8899716890 );
      STRIDE ( 1, 1 );
      COUNT ( 1, 10 );
      BLOCK ( 1, 1 );
      DATA {
      (0,8899716890): 1,
      (0,8899716891):  1,
      (0,8899716892):  2,
      (0,8899716893):  2,
      (0,8899716894):  3,
      (0,8899716895):  3,
      (0,8899716896):  4,
      (0,8899716897):  4,
      (0,8899716898):  5,
      (0,8899716899):  5
      }
   }
}
}
2006-12-19 14:51:53 -05:00
Pedro Vicente Nunes
f234483372 [svn-r13076]
fix for bugzilla bug #551

several programming errors contributed to this bug

1) the parsing of subsetting was using atoi to convert the parameter to an int,
which caused problems for numbers greater that int. Substitute with atof

2) several index counters were declared as int, use hsize_t instead

3) the numerical format passed for printf was %lu, defined one compatible with
hsize_t instead (unsigned long long)
2006-12-19 13:14:26 -05:00
Quincey Koziol
d4946be1f2 [svn-r13075] Description:
Fix display order of attributes.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-19 09:55:54 -05:00
Pedro Vicente Nunes
aa646b5b43 [svn-r13064]
Fix several bugs

1) the parsing of subsetting was using atoi to convert the parameter to an int, which caused problems for numbers greater that int. Substitute with atof

2) the printing of indices in the subsetting case was not being done. Solution: calculate the element position at the start of the subsetting using the algorythm 

Given an index I(z,y,x) its position from the beginning of an array   of sizes A(size_z, size_y,size_x) is given by
Position of I(z,y,x) = index_z * size_y * size_x 
                              + index_y * size_x
                              + index_x

And pass that position to the function that dumps data, h5tools_dump_simple_data. 

3) several index counters were declared as int, use hsize_t instead

4) modified the test generation program so that it includes test cases for subsetting of 1d, 2d, 3d, and 4d arrays and add these tests to the shell script
2006-12-14 16:18:08 -05:00
Pedro Vicente Nunes
28365eb5b3 [svn-r13042]
added a size of array information when printing differences
modified print_pos and diff_datum for having one extra argument *dims
2006-12-11 15:39:38 -05:00
Quincey Koziol
978c9c9d93 [svn-r13034] Description:
Take out separate memory type in the file for SOHM objects and create
aliases for existing memory types for SOHM use.

Tested on:
    FreeBSD/32 4.11 (sleipnir)
2006-12-08 14:44:20 -05:00
Pedro Vicente Nunes
8f5f04bff2 [svn-r13033]
avoid usage to call exit(1), it makes processes to stop in parallel.
2006-12-07 16:53:58 -05:00
Pedro Vicente Nunes
801aba05c0 [svn-r13032]
introduced a new macro PDIFF to calculate differences for unsigned types
2006-12-07 14:39:08 -05:00
Pedro Vicente Nunes
d9940e36b2 [svn-r13031]
introduced more ABS macro use
2006-12-07 12:13:41 -05:00
Pedro Vicente Nunes
b8b5607cfe [svn-r13030]
warnings clean

../../../hdf5/tools/h5repack/h5repack_opttable.c:240: warning: passing arg 2 of `aux_tblinsert_layout' as signed due to prototype
2006-12-07 10:48:19 -05:00
Pedro Vicente Nunes
06618b993c [svn-r13029]
warnings clean

../../../hdf5/tools/h5repack/h5repack_copy.c:615: warning: passing arg 3 of `print_dataset_info' as `float' rather than `double' due to prototype

introduced double precision arithmetic
2006-12-07 10:40:36 -05:00
Pedro Vicente Nunes
1fa6d7cbf7 [svn-r13027]
fixed warning


../../../hdf5/tools/h5diff/h5diff_common.c: In function `usage':
../../../hdf5/tools/h5diff/h5diff_common.c:346: warning: function might be possible candidate for attribute `noreturn'
2006-12-06 16:51:26 -05:00
Pedro Vicente Nunes
405f1946d4 [svn-r13026]
fix some memory allocation problem with info->prefix
2006-12-06 16:14:39 -05:00
Pedro Vicente Nunes
60b03e6af7 [svn-r13025]
compiler warning clean

../../../hdf5/tools/lib/h5tools_ref.c:257: warning: old-style parameter declaration
2006-12-06 14:32:20 -05:00
Pedro Vicente Nunes
49b662bd0d [svn-r13024]
fixed 2 initializations of char* with HDstrdup and HDcalloc
info->prefix = HDcalloc(1, 1);
fname = HDstrdup(argv[opt_ind]);

some were exposed by compiler warnings
2006-12-06 12:00:14 -05:00
Pedro Vicente Nunes
2ab4d2d63a [svn-r13009]
more compiler warning

../../../hdf5/tools/h5diff/h5diffgentest.c:111: warning: passing arg 1 of `test_hyperslab' discards qualifiers from pointer target type
2006-12-01 13:38:34 -05:00
Pedro Vicente Nunes
4a97af8235 [svn-r13008]
more compiler warning

../../../hdf5/tools/lib/h5diff_attr.c:214: warning: passing arg 4 of `diff_array' with different width due to prototype
2006-12-01 13:27:34 -05:00
Pedro Vicente Nunes
57a9f392da [svn-r13007]
cleaned more warnings

../../../hdf5/tools/lib/h5diff_attr.c:214: warning: passing arg 4 of `diff_array' with different width due to prototype
2006-12-01 13:23:56 -05:00
Pedro Vicente Nunes
c9b6db7778 [svn-r13005] removed the PER_FLOAT macro 2006-12-01 11:40:46 -05:00
Pedro Vicente Nunes
7855afc4b2 [svn-r13003]
Cleaned warnings 
h5diff_array.c:804: warning: passing arg 1 of `fabs' as floating rather
than integer due to prototype
introduced double precision arithmetic when possible instead of single
precision
2006-12-01 10:42:26 -05:00
Pedro Vicente Nunes
61380ee661 [svn-r13000] more warnings clean up, modified PER macro to avoid unnecessary floating point comparison
../../../hdf5/tools/lib/h5diff_array.c: warning: comparing floating point with == or != is unsafe
2006-11-30 11:51:42 -05:00
Pedro Vicente Nunes
8a81f07bd7 [svn-r12999] cleaned more warnings
h5diff_array.c:127: warning: declaration of 'per' shadows a global declaration
2006-11-30 11:15:55 -05:00
Pedro Vicente Nunes
9f43fdd998 [svn-r12998]
cleaned compiler warning

../../../hdf5/tools/lib/h5diff_array.c:139: warning: declaration of 'per' shadows a global declaration
2006-11-29 16:34:16 -05:00
Pedro Vicente Nunes
e40fa7aa39 [svn-r12986] remove and insert these files, somehow their end of line terminator is not correct 2006-11-27 15:30:08 -05:00
Pedro Vicente Nunes
e9d44260d1 [svn-r12985]
remove and insert these files, somehow their end of line terminator is not correct
2006-11-27 15:28:47 -05:00
Pedro Vicente Nunes
124ef64faf [svn-r12984]
Added a relative error formula to deal with floating point uncertainty
in the comparison of floats and double types. 
Added new tests for this feature to the file generator program and to
the shell script
2006-11-27 15:10:53 -05:00
Pedro Vicente Nunes
24abd27523 [svn-r12980]
changed the usage message relative to the relative error formula to a more
common and easy to understand form | (b-a) / a |
2006-11-27 13:55:33 -05:00
Pedro Vicente Nunes
51da322882 [svn-r12953] h5repack code revision, avoid one unnecessary call to file open/close in the cheking of objects when there are none requested by the user 2006-11-20 16:31:06 -05:00
Pedro Vicente Nunes
a56c3f0bc4 [svn-r12950]
do not call  H5Ocopy only when there is a user request for
filters/layout
2006-11-20 10:25:11 -05:00
Elena Pourmal
0ede5b8c9c [svn-r12939] Description:
Removed all but one warnings for h5stat on Linux (heping)
2006-11-17 15:49:33 -05:00
Pedro Vicente Nunes
04e7a0ba36 [svn-r12936]
make h5repacktst clean a big file which name was changed to "h5repack_big_out.h5", do not use H5Ocopy only when the original DCPL has filters or a request is made for such, more code cleaning
2006-11-17 15:00:46 -05:00
Quincey Koziol
1482d3e9cb [svn-r12932] Description:
Basic support for H5Literate() routine.  Still needs to be fleshed out and
refactored to simplify.  Also, needs tests. :-)

Tested on:
    FreeBSD/32 4.11 (sleipnir)
    Linux/32 2.4 (heping)
    Linux/64 2.4 (mir)
    AIX/32 5.? (copper)
    Mac OS X/32 10.4.8 (amazon)
2006-11-17 10:48:41 -05:00
James Laird
6b5a918b1e [svn-r12929] Hopefully this really is a fix for the tg-login errors.
The version of libtool used by HDF5 isn't directly affected by the reconfigure
script; instead, libtoolize --force must be used by hand.  Libtool was the
source of the problem, so rolling its version back to 1.5.14 should solve the
issue (at least temporarily).

Reconfigure should still work on both heping and kagiso.

Tested on heping, kagiso, and tg-login3.
2006-11-16 15:44:35 -05:00
Pedro Vicente Nunes
8040a0f381 [svn-r12928] code revision 2006-11-16 15:38:05 -05:00
Pedro Vicente Nunes
d4c0a98a9b [svn-r12918]
removed whitespace
2006-11-15 15:58:15 -05:00
Pedro Vicente Nunes
8f74e81758 [svn-r12917]
h5repack revision: 
1.	added a new test due to the introduction of H5Ocopy in the copy of objects (compressed dataset with references, that still must go a second sweep of the file to be regenerated). 
2.	Moved all the source files from the h5repack test program to a new file h5repacktst.c and removed the old ones (testh5repack*.c). 
3.	Renamed the binary files from test*.h5 to h5repack*.h5 for easy reference.
4.	Modified the shell script to use variables for file names instead of hard coded names
2006-11-15 14:56:44 -05:00