Commit Graph

1475 Commits

Author SHA1 Message Date
Albert Cheng
1b98fd4dbe [svn-r13365] Bug fix.
Description: Multiple copies of Copyright appeared in Makefile.in.  This was
due to automake copying the copyright right in the included files such as
config/commence.am.

Solution: Automake treats double hashes as comments and does not copy them
to Makefile.in.  Changed all the copyright notices in config/*.am to use
double hashes for the Copyright right notice.

Tested: kagiso via bin/reconfigure.
2007-02-21 10:43:35 -05:00
James Laird
c64266b78e [svn-r13359] Fixed a bug where the -shlib flag for h5cc would end up on the Dependency line
in the Makefile.

Makefile change only.  Tested on kagiso, to be used to test on cobalt.
2007-02-20 18:39:44 -05:00
Pedro Vicente Nunes
5af701a32e [svn-r13334] Added a new function to print the dimensions sizes 2007-02-19 15:21:09 -05:00
Pedro Vicente Nunes
8f1229d2c8 [svn-r13321] revised attribute ordering done for the library makes h5diff to output
attributes in another order
2007-02-16 13:45:02 -05:00
Albert Cheng
5e1bee4f60 [svn-r13311] Updated copyright notice.
Test:
Just visual inspection as these are all comments changes.
2007-02-14 17:25:02 -05:00
Quincey Koziol
cec2dd6085 [svn-r13306] Description:
Mask off the storage utilization for the h5ls output, so that the
h5ls output is more portable (VL datatype size is reported as the memory size
instead of the file size, making the storage utilization incorrect - entered
in bugzilla)

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2007-02-14 15:30:41 -05:00
Quincey Koziol
9c9bebf839 [svn-r13305] Description:
Clean up indentation.

Tested on:
    Linux/32 2.6 (chicago)
2007-02-14 14:55:27 -05:00
Quincey Koziol
efc45d5aab [svn-r13303] Description:
Blank out the modification time, to eliminate another portability issue.

Tested on:
    Linux/32 2.6 (chicago)
    FreeBSD/32 6.2 (duty)
    Mac OS X/32 10.4.8 (amazon)
2007-02-14 12:56:26 -05:00
Quincey Koziol
7b54b0d787 [svn-r13302] Description:
Use the '-S' command line flag for h5ls, to make the output portable.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2007-02-14 12:45:20 -05:00
Quincey Koziol
f6a22fb0de [svn-r13301] Description:
Add '-p' flag to h5copy tool, to create intermediate "parent" groups
that don't exist in destination file yet.

    Add more tests to h5copy script.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2007-02-14 11:31:11 -05:00
Quincey Koziol
847f01442b [svn-r13299] Description:
Put paths to testfile input & output directories in one place, making it
easier to modify them if we choose to re-arrange our testfile locations in
the future (this should probably be carried over to other test scripts).

    Make h5copy exit more cleanly if no command line parameters are given.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2007-02-14 09:44:42 -05:00
Quincey Koziol
bb392083b2 [svn-r13297] Description:
Add small 'h5mkgrp' tool to create groups in an HDF5 file from the command
line, allowing the group structure for a file to be created in a script.  This
tool closely follows the 'mkdir' command line tool in UNIX/Linux.

    Allow tool library applications to pass a FAPL to the h5tool_fopen() call,
giving some additional flexibility to tools which are adding objects to an
existing HDF5 file (like h5copy & h5mkgrp).

    Fix missing files in MANIFEST from previous checkin(s).

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2007-02-14 08:54:11 -05:00
Pedro Vicente Nunes
df075c5b92 [svn-r13296]
temporary fix for a daily test failure
2007-02-14 00:39:21 -05:00
Quincey Koziol
a5662c4978 [svn-r13294] Description:
Add empty & "full" groups to source HDF5 file and test copying them.

    Test renaming objects during copy

    Test specifying root group path for source & destination objects

Tested on:
    Linux/32 2.6 (chicago)
    Too minor to require more tests
2007-02-13 18:45:13 -05:00
Quincey Koziol
c6b3059a92 [svn-r13293] Description:
Refactor h5copy testing script to abstract out some of the common behavior,
obey the "HDF5_NOCLEANUP" environment variable, delete any output file left
over from a previous run, add a "test variation" parameter to output file name
for adding next sequence of test variations, etc.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2007-02-13 18:21:07 -05:00
Quincey Koziol
d3c5ab50fc [svn-r13292] Description:
Add feature to h5copy to allow it to add an object to an existing file,
instead of blowing away existing file.

    Modify h5tools_fopen() routine to take access flags, so it can be used
to open an existing file for writing.

    Added check to h5copy test script that verifies it has produced a file
with the correct structure.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2007-02-13 17:42:43 -05:00
Quincey Koziol
4b23b17528 [svn-r13288] Description:
Fix core dump for iterating over attributes and not passing in a "starting
point".

    Update output files missed in previous checkin.  This change essentially
reverses a previous change of attribute ordering, leaving the output of h5dump
& h5ls compatible with 1.6.x

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2007-02-13 14:33:33 -05:00
Pedro Vicente Nunes
46e24b92bf [svn-r13286]
replaced a dataset type from H5T_NATIVE_CHAR to H5T_NATIVE_SCHAR
2007-02-13 09:48:30 -05:00
Pedro Vicente Nunes
57189d8a82 [svn-r13285]
remove a test that was incorrectly added previously, that was not the feature that had to be tested
2007-02-12 17:38:41 -05:00
Pedro Vicente Nunes
c8fb91983e [svn-r13283]
added a test for the printing of long long numbers greater than 4GB
2007-02-12 16:32:36 -05:00
Pedro Vicente Nunes
319ad4c84b [svn-r13280]
2 tests that were previously incorporated inside the array indices test file were separated from it. These are a test with a dataset with dimensions greater tan 4GB and a test to read by hyperslabs
2007-02-12 14:57:44 -05:00
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
James Laird
a9397f3f51 [svn-r12911] Backed up to previous versions of automake and libtool. Hopefully this will fix
issues on tg-login3.

bin/reconfigure should still work on both heping/mir and kagiso.
2006-11-14 11:15:07 -05:00
James Laird
b6c317f27c [svn-r12902] Checkin of Shared Object Header Message work.
This feature is still in progress; Shared Object Header Messages are not
complete as a feature and are not thoroughly tested.  There are still
"TODO" comments in the code (comments with the word "JAMES" in them,
so as not to be confused with other TODO comments).

Hopefully this checkin will reduce the liklihood of conflicts as I finish
implementing this feature.

All current tests pass on juniper, copper (parallel), heping, kagiso, and mir.
2006-11-13 15:41:36 -05:00
Quincey Koziol
3f25d6c6d1 [svn-r12895] Description:
Add new H5Lget_val_by_idx() routine & tests.

    Also includes most of changes for H5Ldelete_by_idx() routine.

Tested on:
    Mac OS X/32 10.4.8 (amazon)
    FreeBSD/32 4.11 (sleipnir)
    Linux/32 2.4 (heping)
    Linux/64 2.4 (mir)
    AIX/32 5.? (copper)
2006-11-13 10:00:06 -05:00
Pedro Vicente Nunes
b782690027 [svn-r12888]
Introduced the second sweep of the file for a case a reference is present and H5Ocopy was not used.
Moved the code from file h5repack_refs.c to h5repack_copy.c and removed the first file
2006-11-10 15:23:31 -05:00
James Laird
911e79b273 [svn-r12887] A fix for linking issues.
Should disable linking against shared libraries in Fortran for compilers that
don't support shared libraries.

Should also fix problem when the wrong Fortran file extension was specified.

If these changes don't solve the Daily Test issues, I'll look at backing out
the autotool version change until I have time to fix them.

Tested on heping, kagiso, juniper.
2006-11-10 14:56:04 -05:00
Pedro Vicente Nunes
50c658d66d [svn-r12884]
h5repack support for H5Ocopy in the copy of objects. The old method
for recreating references was dropped (references recreated in a second
traversal of the file)
The logic for using H5Ocopy or not is
if the input DCPL has filters or non default layout OR these are
requested by the user THEN
use the old h5repack read / write
ELSE
use H5Ocopy
2006-11-08 16:34:21 -05:00
Pedro Vicente Nunes
89cca34b97 [svn-r12883]
h5dump bug 701. Symptom: The creation of a hardlink pointing to the root group "/" causes h5dump to display it as a link pointing to itself.
Cure: the root group was not being inserted in the table that keeps track of object names and links.
Added a test for this in the test generation program, the creation of a hardlink to the root
2006-11-08 16:24:41 -05:00
James Laird
a9350e86f0 [svn-r12882] Changed bin/reconfigure to work on kagiso as well as on AFS Linux machines.
Updated to the latest versions of autotools.

Tested on kagiso, heping, and juniper.  Let me know if you have any problems.
2006-11-08 13:39:15 -05:00
Quincey Koziol
db3632444b [svn-r12871] Description:
Clean up a couple of warnings...

Tested on:
    Linux/64 2.6 (chicago2)
2006-11-06 21:48:39 -05:00
Quincey Koziol
2e8e42d6c9 [svn-r12869] Description:
Rename new H5Gcopy() routine to H5Ocopy() as discussed in last Friday's
design discussion.

Tested on:
    Linux/32 2.6 (chicago)
2006-11-06 16:35:44 -05:00
Quincey Koziol
5adf1ee1ba [svn-r12864] Description:
Changed H5Lget_linkval() to H5Lget_val(), per our design discussion last
Friday afternoon.

Tested on:
    Linux/32 2.6 (chicago)
2006-11-06 12:05:16 -05:00
Elena Pourmal
9e4f177eba [svn-r12838] Description:
Added a framework to display information about a particular object.
	This option (-O object_name) is not available to the users yet. 
        Currently only name of an object (or objects) is displayed. 

Platforms tested:
	sol, kagiso and copper.
2006-10-31 22:04:01 -05:00
Quincey Koziol
8b52aae45d [svn-r12835] Description:
Change H5Lget_linkinfo() to H5Lget_info() to better align with coming API
changes.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-10-30 19:45:31 -05:00
James Laird
c19a43d854 [svn-r12831] Changed the API for "unpacking" an external link value to take the size of
the linkval buffer, per Elena and Frank's suggestions while revising
the documentation.  Added error checking using this size, as well as a
couple of tests.

Tested on juniper, kagiso, and sol.
2006-10-30 15:24:19 -05:00
Pedro Vicente Nunes
199b2f9a1d [svn-r12826]
added a new test for h5diff relative error for the file generator
program
2006-10-30 10:18:58 -05:00
Quincey Koziol
143db84d88 [svn-r12821] Description:
Clean up compiler warnings, esp. on 64-bit Linux boxes.

Tested on:
    FreeBSD/32 4.11 (sleipnir) w/threadsafe
    Linux/32 2.4 (heping) w/C++ & FORTRAN
    Linux/64 2.4 (mir) w/build-all & 1.6 compat
2006-10-28 15:49:40 -05:00
Pedro Vicente Nunes
469f6d30b1 [svn-r12819]
h5diff: print a message of "not comparable" in a case where the relative error
compare is not possible, due to the denominator being zero.  Modified
the test file generator program to include a example for this and a new
test on the shell script
2006-10-26 12:48:36 -05:00
Pedro Vicente Nunes
9d94440384 [svn-r12815]
1) added a new parameter to the h5diff function diff_array that contains
the beginning position of the hyperslab, so that the total position in
the array is printed correctly when reading by hyperslabs.
2) added a new test to h5diff  that reads and diffs by hyperslabs. The
test reads a 1GB dataset, from which a 1KB hyperslab was written with
differences .
3) added the generation of 2 files to the generator program to test the
h5diff hyperslab read.
4) changed the h5diff binary pre-generated file names to be more
descriptive (e.g, instead of file1.h5, made it h5diff_basic1.h5)
5) changed the name of the h5repack options text file to info.h5repack
2006-10-25 15:38:28 -05:00
Pedro Vicente Nunes
118b1d38fa [svn-r12794]
1. bug fix. the h5_cleanup file names were not build properly on the h5repacktest call
2. added only a call to test_bigout.h5 to be clean, because the other files are generated anyway  by the shell script. test_bigout.h5  is only made on the C program part (h5repacktst)
2006-10-20 14:33:16 -05:00
Pedro Vicente Nunes
df803f78d0 [svn-r12793] 1. fix a compiling error in atlantia
2. added the test library delete framework to delete output .h5 files
3. cleaned warnings
2006-10-20 13:45:17 -05:00
Pedro Vicente Nunes
e925ba26bb [svn-r12786]
a more improved usage message, specially on the filter and layout
information
2006-10-19 14:48:42 -05:00
Pedro Vicente Nunes
06a2780901 [svn-r12785]
added a new much more readable usage message
2006-10-19 13:50:37 -05:00
Pedro Vicente Nunes
a1edc70691 [svn-r12784]
Fixes for bugs 676, 228

676: both h5repack and h5diff use H5Dread. In the case of a "big"
dataset, use read/write by hyperslabs the same way h5dump uses. An
arbitrary value of 1GB was defined for "big", i.e, if the dataset is
greater than 1GB, then read/write by hyperslabs

228: use the file type in read/write by default. A new switch -n was
introduced if the user wants to use a native type, which was the
previous use by default.

Added a new test for h5repack that repacks a 1GB dataset

Tested: heping (serial, parallel), sol, copper
2006-10-19 12:07:26 -05:00
Pedro Vicente Nunes
2d586abc27 [svn-r12772]
added more tests for h5copy (compressed datasets, vl named datatypes )
2006-10-17 15:59:10 -05:00
Quincey Koziol
f7a8a14bfd [svn-r12770] Description:
Overhaul usage of object header chunks to reduce I/O operations and
memory allocations.  The object header prefix is now stored in the first
object header chunk's "image" in memory.

    Also, lots of formatting cleanups.

    Taught h5debug tool about new object header format (which isn't enabled
just yet).

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-10-16 18:04:45 -05:00
Pedro Vicente Nunes
6a35d4c306 [svn-r12762]
rewrote the -b option to make it more clear
2006-10-16 11:53:51 -05:00
Quincey Koziol
9848ea0387 [svn-r12761] Description:
Refactor object header macros, in preparation for updating the format.

Tested on:
    Mac OS/PPC 10.4.8 (amazon)
    FreeBSD/32 4.11 (sleipnir) w/thread-safe
    Linux/32 2.4 (heping) w/C++ & FORTRAN
    Linux/64 2.4 (mir) w/1.6 compat & build-all
2006-10-16 09:46:00 -05:00
Raymond Lu
c69d0bd40b [svn-r12747] Added a condition check to see if Direct I/o is enabled. 2006-10-11 16:57:18 -05:00
Raymond Lu
ed7ba34f1f [svn-r12743] Took out printout for driver information because the driver used can be different from the driver
used for standard output.
2006-10-11 10:21:10 -05:00
Raymond Lu
484ce75af4 [svn-r12742] Updated this output for a new driver "direct" has been added. 2006-10-11 09:58:55 -05:00
James Laird
de383a7edf [svn-r12741] Added support for direct I/O to check-vfd. The direct VFD is only tested
if it is enabled.

Added Direct VFD status to the configure summary.

Removed a line left over from pablo support.  Oops!
2006-10-10 15:47:24 -05:00
Raymond Lu
65d30cc9c3 [svn-r12739] Added Direct I/O driver to VFD. It's only supported by SGI Altix (cobalt). There's a configure
option --enable-direct-vfd/--disable-direct-vfd to enable/disable Direct I/O support.  The default
is enabled.  There's a small test in test/vfd.c.  Another way to test it is to set environment
variable HDF5_DRIVER to "direct" and run "make check" in the test/ directory.  There'll be some
further improvement in the following checkin including allowing user to provide memory boundary
value, file block size, and copying buffer size.
2006-10-10 15:07:16 -05:00
Quincey Koziol
14dcb6db33 [svn-r12736] Description:
Add "use the latest format" support for dataspace object header encode/
decode routines and clean up format a bit for the latest format (new to 1.8.x
releases)

    Remove storing 'perm' parameter for array datatypes in memory and the file,
and add test to make certain that if any user applications are attempting to
store them, we get some reports back.  (Should be unlikely, since the RefMan
says that the parameter is not implemented and is unsupported).
    Carry those changes into the tests, etc.

    Clean up a bunch more compiler warnings.

Tested on:
    FreeBSD/32 4.11 (sleipnir) w/threadsafe
    Linux/32 2.4 (heping) w/FORTRAN & C++
    Linux/64 2.4 (mir) w/enable-1.6-compat
2006-10-08 23:18:18 -05:00
Pedro Vicente Nunes
af51ee1e00 [svn-r12726]
added calls for the scale offset filter to the h5repack test script
2006-10-06 10:41:30 -05:00
Pedro Vicente Nunes
c13697362a [svn-r12722]
added new tests for h5copy script, generated in the test file generator program
2006-10-05 14:46:45 -05:00
Pedro Vicente Nunes
40250f05a3 [svn-r12721]
corrected commnet
2006-10-05 11:12:27 -05:00
Pedro Vicente Nunes
5df5ee8956 [svn-r12720]
added output of error messages using the tools library function error_msg, that prints the program name and error on the message

tested: kagiso
2006-10-05 09:35:40 -05:00
James Laird
e5f0444b3a [svn-r12715] Incorporated a user-submitted patch to better detect the 'tr' utility
and quote its arguments.  Also checks for the 'socket' library on
Solaris.

If this patch passes the Daily Tests and makes the user happy, I'll
port it back to the 1.6 branch.

Tested on mir and sol.
2006-10-03 17:41:34 -05:00
Pedro Vicente Nunes
e23d2acad8 [svn-r12713]
added new tests with different datatypes  for h5dump binary output

tested: kagiso
2006-10-03 11:33:55 -05:00
Quincey Koziol
84a4166e72 [svn-r12707] Description:
Further minor modifications to the file format for tracking links in groups.
This is tentatively the "final" file format for groups.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-10-02 16:46:39 -05:00
Quincey Koziol
a6f6462541 [svn-r12700] Alert:
File format is not stable, don't keep files produced!

Description:
    First stage of checkins modifying the format of groups to support creation
order.  Implement "dense" storage for links in groups.

    Try to clarify some of the symbols for the H5L API.

    Add the H5Pset_latest_format() flag for FAPLs, to choose to use the newest
file format options (including "dense" link storage in groups)

    Add the H5Pset_track_creation_order() flag for GCPLs, to enable creation
order tracking in groups (although no index on creation order yet).

    Remove --enable-group-revision configure flag, as file format issues are
now handled in a backwardly/forwardly compatible way.

    Clean up lots of compiler warnings and other minor formatting issues.

Tested on:
    FreeBSD/32 4.11 (sleipnir) w/threadsafe
    Linux/32 2.4 (heping) w/FORTRAN & C++
    Linux/64 2.4 (mir) w/enable-v1.6 compa
    Mac OSX/32 10.4.8 (amazon)
    AIX 5.3 (copper) w/parallel & FORTRAN
2006-10-02 05:24:03 -05:00
Pedro Vicente Nunes
110a855d5e [svn-r12687] reverted back some changes that inadvertedely added some output to the
parallel part of h5diff

tested : heping parallel
2006-09-26 14:21:55 -05:00
Pedro Vicente Nunes
24fb06cd7a [svn-r12684]
corrected usage message to have an example of the new binary parameters
2006-09-26 10:51:16 -05:00
Pedro Vicente Nunes
e9188e385a [svn-r12683]
revised binary flags, added a new file to the test generator program to
be used in the binary tests

usage is now

     -o F, --output=F     Output raw data into file F
     -b F, --binary=F     Binary output, of form F (into file -o F).
                          Recommended usage is with --dataset=P
                          Form F of binary output is: MEMORY for memory type,
                          FILE for the disk file type, LE or BE for pre-existing
                          little or big endian types

example

./h5dump -d integer -b MEMORY -o out.bin  tbinary.h5
2006-09-26 10:47:36 -05:00
Quincey Koziol
c77e39522b [svn-r12680] Description:
Review, revise & checkin in Peter's latest round of object copy changes,
which add basic support for datasets & attributes with reference datatypes.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-09-25 17:22:14 -05:00
Pedro Vicente Nunes
c439d91f81 [svn-r12678] bug fix
the number of atribute differences was not added to the total sum of
differences
2006-09-25 10:49:26 -05:00
Pedro Vicente Nunes
bcdbce1f6a [svn-r12675]
added a new output file for the case of missing file name, conforming to
the new usage message
2006-09-20 09:40:33 -05:00
Pedro Vicente Nunes
79a3951338 [svn-r12673]
added long names for parameter switches that did not have them,
reformated usage message

tested: heping
2006-09-19 16:22:57 -05:00
Pedro Vicente Nunes
b72f6dc836 [svn-r12671]
added a test file generator program for h5copy, modified test script to use
that file, added binary file to repo

tested on heping, shanti
2006-09-18 11:25:47 -05:00
Quincey Koziol
24725d64aa [svn-r12668] Description:
Re-run 'bin/reconfigure' script after recent checkins

Tested on:
    none - shouldn't have any affect on compilation
2006-09-15 15:06:01 -05:00
Pedro Vicente Nunes
907c60a12a [svn-r12665]
added comments
2006-09-13 09:59:45 -05:00
Pedro Vicente Nunes
d135049773 [svn-r12664]
modified the h5copy test script so that it calls h5diff to check the
copied file/object
2006-09-13 09:46:30 -05:00
Quincey Koziol
23b3a6a91b [svn-r12644] Description:
Improve density of the B-tree further.  For greater depths of B-trees,
the gains are over 100%...

    Also, don't split internal nodes with 3->4 splits, use a 1->2 split
instead, so that the density of the nodes around a split is maximized.

Tested:
    Mac OS X/PPC 10.4 (amazon)
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-09-05 15:53:16 -05:00
Frank Baker
749a0b9c17 [svn-r12640]
Description:
    Add per-directory abbreviated copyright notices 
    (abbreviated COPYING files pointing to full notices).
Tested:
    MANIFEST verified; not otherwise tested.
2006-09-04 13:30:13 -05:00
Albert Cheng
66d2d26f5d [svn-r12634] Purpose:
Code cleanup.

Description:
Removed argc and argv from the function arguments of h5tools_get_fapl() and
h5tools_fopen().  They were used to call MPI_Init() which was no longer
needed.

Tested:
heping (serial and parallel).
2006-08-27 19:55:27 -05:00
Quincey Koziol
f49a8d1afc [svn-r12631] Description:
Refactor the file storage of "twig" nodes in the B-tree to allow them to
store more records, increasing the average density of the B-tree 30-40%.

    Increase # of records in "insert lots" regression test to still create
B-tree of depth 4

    Update h5debug to interpret difference of 'branch' and 'twig' internal
nodes in B-tree correctly.

Tested on:
    FreeBSD/32 4.11 (sleipnir)
    Linux/32 2.4 (heping)
    Linux/64 2.4 (mir)
    Solaris/64 2.9 (shanti)
2006-08-26 02:26:07 -05:00
Pedro Vicente Nunes
896f001f33 [svn-r12628]
updated the usage message of h5copy
2006-08-24 16:48:51 -05:00
Pedro Vicente Nunes
35661615a5 [svn-r12626]
h5copy, new behavior according to RFC: introduction of -i, -o, -s , -d
switches for file and object names
2006-08-24 10:53:31 -05:00
James Laird
9d4229713e [svn-r12608] Checked in External Link C examples.
Since these examples need to follow filesystem paths, the Makefiles need
to create directories in the examples directory; added this to the
Makefile.am.

Tested on Windows, mir, juniper
2006-08-22 11:22:43 -05:00
Quincey Koziol
49d1901fdd [svn-r12592] Description:
Several changes, all mooshed together:
        - Add support for "tiny" objects - which can be stored in the heap
            ID itself, instead of in the heap data blocks.
        - Flesh out support for compressed direct blocks, but comment it
            out until John's got some metadata cache changes in place to
            support it.
        - Add support for applying I/O pipeline filters to 'huge' objects
        - Refactor 'huge' object code to store information for 'huge' objects
            directly in the heap ID, when there are I/O pipeline filters
            applied to the heap (and the heap ID is large enough to hold the
            information)
        - Update h5debug tool to correctly handle 'huge' & 'tiny' objects.
        - Misc. other code cleanups, etc.

Tested on:
    FreeBSD/32 4.11 (sleipnir)
    Linux/64 2.4 (mir)
    Solaris/64 2.9 (shanti)
2006-08-17 10:59:14 -05:00
James Laird
e5bc52d890 [svn-r12584] Mentioned VFD in test output to make it easier to tell which VFD is being used
when a test is run.

Running reconfigure also regenerated error header files (because someone edited
them manually?).
2006-08-17 09:18:03 -05:00
Elena Pourmal
a0591aaf96 [svn-r12581] Description:
Bug fix and maintenance
  Checked in James fix and did more code refactoring.

Platforms tested: heping, copper and shanti (and X1 for the bug fix)
2006-08-16 17:45:56 -05:00
Elena Pourmal
9ec01d6222 [svn-r12569] Description: Maintenance
Refactored code in the main function to improve future maintenance and code readability.

Platforms tested:

 heping, shanti (64-bit)
2006-08-12 13:40:22 -05:00
Quincey Koziol
c3b9788c9f [svn-r12545] Description:
Add external link test file
2006-08-04 15:52:48 -05:00
Quincey Koziol
8b9f020cb1 [svn-r12544] Description:
Clean up compiler warnings/failures in test/links.c, especially when
--disable-production flag used with --enable-group-revision

    Modify binary dumping in h5dump to clean up files created [a band-aid
solution to not actually creating the files in the srcdir, but better than
just leaving the files around... :-/ ]

Tested:
    FreeBSD 4.11 (sleipnir) (w/ configure flags above)
    Too minor to require h5committest
2006-08-04 15:44:42 -05:00
Albert Cheng
cce17a2274 [svn-r12535] Added a new test for testing error handling of non-existing file.
nosuchfile.ls is the expected output.

Tested: tg-ncsa and heping.
2006-08-03 22:59:24 -05:00
Albert Cheng
104edc6fb9 [svn-r12534] Purpose:
Bug fixes.

Description:
There were MPI_init and MPI_finalize calls in the code of h5tools_fopen in
parallel mode.  But if a non-MPI tool is invoke to open a non-existing
file, it tries to open the non-existing file with different VFD and
eventaully came to try with the MPIO or the MPIPOSIX vfd, then it would
try to do MPI_Init which would fail in the MPI environment if the a.out
was not launched by MPI properly.

Solution:
MPI_Init and MPI_Finalize in general should be called by the MPI application,
not called by a library subroutine as in the manner that was done here.
Removed the MPI_init and MPI_Finalize calls.  Used MPI_Initialized to
verify if this has been launched as an MPI application in the proper
manner before attempting to use the MPIO or the MPIPOSIX VFD to open
the file.

Tested:
In tg-ncsa parallel, where it had failed explicitly and also in Heping,
using both serial and parallel mode.
2006-08-03 21:57:36 -05:00
James Laird
fb4711f6dd [svn-r12529] Fixed a couple of bugs that were causing trouble for Windows builds (not sure
why they weren't on other systems).  Thanks, Kent!
2006-08-03 12:44:16 -05:00
James Laird
3e755623cb [svn-r12528] Added User-Defined links to the library.
Users can create external links using H5L_create_external().  These links
point to an object in another HDF5 file.  Users can alter the behavior of
external links or create new kinds of links by registering callbacks
using the H5L interface.

Added tests, tools support, etc.

Also a number of other, minor changes have been made (some restructuring of
the H5L interface, for instance).

Additional documentation and examples are forthcoming.
2006-08-02 18:41:53 -05:00
Quincey Koziol
c951c27830 [svn-r12525] Description:
Refactored free space manager to use metadata cache for serialized free
space sections.  This speeds up the fractal heap test considerably...

Tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4/32 (chicago)
    Linux 2.4/64 (mir)
    Mac OS X (amazon)
2006-08-02 11:44:44 -05:00
Albert Cheng
1be6fb8417 [svn-r12522] h5copy was not able to find the source file because it was not using
the $srcdir properly.  It is not right to chdir into testfiles and write
files there because in real srcdir mode, one should not changes things
in the srcdir area which could be shared by multiple builds simultanteously.

Solution: added the proper $srcdir components to the source file name.
Also clean up the indentation by cb.

Tested: only by hand in heping.
2006-08-01 09:31:45 -05:00
Pedro Vicente Nunes
26303bfdb5 [svn-r12520] bug fix
added a call to h5tools_close

tested: linux
2006-07-31 14:53:14 -05:00
James Laird
beb04ae817 [svn-r12519] Fixed "make check-vfd"
"make check-vfd" will now run all tests in the test directory with different
file drivers (at least, all of those tests that use the testing framework's
FAPL).  Tests that fail will be skipped.

This is not a perfect fix, but is better than nothing.

Along with this change, check-vfd should be added to the Daily Tests.
2006-07-31 14:46:16 -05:00
Pedro Vicente Nunes
70b46a1d89 [svn-r12518] h5dump binary output:
1. changed the -F flag option names to "BE and "LE" for big and little endian 
2. added a more verbose usage message for these options
3. add a new test
4. add a make clean instruction  to *.bin
2006-07-31 11:04:31 -05:00
Pedro Vicente Nunes
ce859f41bb [svn-r12515]
updated the usage message with new info for the binary output option

tested: linux
2006-07-28 13:39:05 -05:00
Pedro Vicente Nunes
c7384f49e0 [svn-r12513]
new feature
h5dump binary output. use little and big endian type conversions
2006-07-28 10:00:29 -05:00
Pedro Vicente Nunes
e5efc2f057 [svn-r12510] add a test for a missing file name
test: linux
2006-07-27 13:52:26 -05:00
Pedro Vicente Nunes
b7dd856aea [svn-r12504]
bug fix

calling h5tools_get_fapl running the mpio driver caused H5FD_pl_copy to
fail silently in some conditions. a MPI call was made before MPI_Init.

solution: corrected the MPI call to be made after MPI_Init and added error return
conditions to H5FD_pl_copy and h5tools_get_fapl

tested on copper parallel, mir, shanti
2006-07-27 10:01:48 -05:00
Pedro Vicente Nunes
59d5e5c6fb [svn-r12490]
commented h5copy calls that are failing with mpicc compiler
2006-07-21 13:33:17 -05:00