Commit Graph

9321 Commits

Author SHA1 Message Date
Binh-Minh Ribler
d37ce8c440 [svn-r13094] Purpose: Adding new test file
Description:
    Added ./c++/test/tvlstr.cpp

Tested:
    Checked with bin/chkmanifest
2007-01-01 21:23:19 -05:00
Binh-Minh Ribler
8e27c89888 [svn-r13093] Purpose: Adding test
Description:
    Added variable-length string tests.

Platforms tested
    AIX 5.1 (copper)
    SunOS 5.8 64-bit (sol)
    Linux 2.6 (kagiso)
2007-01-01 21:17:36 -05:00
Binh-Minh Ribler
e5fff45c09 [svn-r13092] Purpose: Maintenance
Description:
    Added overloaded method DataSet::vlenReclaim, that has better prototype.
    Fixed some typos.

Platforms tested
    AIX 5.1 (copper)
    SunOS 5.8 64-bit (sol)
    Linux 2.6 (kagiso)
2007-01-01 21:11:25 -05:00
James Laird
2d42a6277c [svn-r13087] Added a small test to check that SOHMs work fine when using external links. They do.
Tested on smirom, kagiso, and Windows.
2006-12-22 15:56:36 -05:00
James Laird
b1c318eebe [svn-r13086] Added deletion test for shared messages. I'm not sure that this test is
as complete as it could be, so I may add to it later.

Fixed a bug in reference counting messages that are referenced by shared
messages (attribute datatypes and dataspaces).

Tested on mir, smirom, and Windows.
2006-12-22 13:23:08 -05:00
James Laird
e3fe4f7790 [svn-r13085] Yesterday's checkin wasn't a complete fix for copying filters in DCPLs.
Extended the test so it broke again and then fixed it again.

Tested on kagiso.
2006-12-21 11:05:00 -05:00
James Laird
56dae018e2 [svn-r13084] Fixed a bug that occurrs when copying DCPLs with filters that have filter
data.

Added a regression test for this bug.

Tested on kagiso.
2006-12-20 16:33:51 -05:00
Elena Pourmal
79c17d54cc [svn-r13083] Description:
VMS maintenance: updated command file with the new source files;
        sohm test was failing on VMS due to upper case/lower case letters in 
        constant and variable names (i.e. FILENAME vs. filename); modified the test
        to avoid confusion.

Platforms tested:
	VMS server, kagiso
2006-12-20 16:10:06 -05:00
Binh-Minh Ribler
36e1d514c4 [svn-r13082] Purpose: Code cleanup
Description:
    Changed from hsize_t to int for rank constants to fix errors on Windows.

Platform tested:
    Linux 2.6 (kagiso)
    Visual 6.0 on Windows XP
2006-12-20 14:15:02 -05:00
MuQun Yang
371e2dda53 [svn-r13081] Updated libary project files.
test_cpp didn't pass compiling. C and Fortran are fine.

Compilers: VS 6.0 Compaq Visual fortran 6.6c.
2006-12-20 10:29:29 -05:00
Elena Pourmal
6b156d43a9 [svn-r13080] Description:
Maintenance for the HPUX 11.23 platform.

Problem:
	C++ shared libraries are not supported for the 64bit mode (+DD64 compiler flag)

Solution:
	Disable shared C++ library when +DD64 flag is detected.

Platforms tested:
	sirius (HPUX 11.23 at UMKC) and kagiso
2006-12-20 10:22:54 -05:00
Quincey Koziol
de9088b6bb [svn-r13079] Description:
Add more tests for checking that writing to shared attributes works
correctly.  (Looks like it still has a bug when dense storage is used, which
I'll correct shortly).

    Add testing routine to shared message code, to retrieve reference count for
a shared message.

    Add fractal heap 'op' callback for efficiently computing the hash value of
an existing encoded message in the shared message fractal heap.

    Various minor cleanups and warning placations.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-19 15:18:26 -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
MuQun Yang
cd1d21dff7 [svn-r13077] HDF5 library project updates due to the adding of new source code. 2006-12-19 14:26:27 -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
Quincey Koziol
43ec5b7ef4 [svn-r13074] Description:
Add support for opening attributes in dense and/or shared storage by
index.

    Move routines for building and operating on tables of attributes into
separate source module.

    Fix bug where reverting from "dense" to "compact" storage would 'unshare'
attributes.

    Minor code cleanups, etc.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-18 20:59:28 -05:00
Quincey Koziol
5865018c85 [svn-r13073] Description:
Verify H5Aget_num_attrs() works correctly for new object header format.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-18 16:25:05 -05:00
Quincey Koziol
9769d008b0 [svn-r13072] Description:
Push support for shared attributes into more dark corners of the "dense"
attribute storage support.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-18 16:06:44 -05:00
James Laird
f327d12ebd [svn-r13070] Added shared message example program in hdf5/examples.
Also cleaned up one old API routine in H5Ppublic that isn't used.

Tested on smirom and kagiso.  More testing to follow.
2006-12-18 14:23:41 -05:00
James Laird
e100695eb0 [svn-r13068] Ran bin/reconfigure. Some of the scripts have been changed or haven't
been run in a while, so many of the source files were updated with
tracing macros, etc.  No code changes by me.

Tested on kagiso and smirom.
2006-12-18 14:16:17 -05:00
Quincey Koziol
ddbc06fce6 [svn-r13067] Description:
Add [quite] limited ability to update (ie. write) data for objects in
fractal heap.  Limited to just updating objects in managed heap blocks (i.e.
not 'tiny' or 'huge' objects) and must be updated with data of the same length
as the object in the heap.  Updating objects in compressed heaps does work
though [as long as the data isn't 'tiny' or 'huge'].
    Needed for changing the data value or the name of an attribute that is
stored in dense or shared storage.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-18 12:52:43 -05:00
James Laird
9236c9a148 [svn-r13065] Added support for copying shared messages (including turning unshared
messages to shared messages and vice versa).

Extended objcopy test to test all "permutations" of shared/unshared and
new/old group format.  If this proves to take a long time to test, I'll
go back and have it run fewer tests when HDF5_TEST_EXPRESS is enabled. 

Tested on smirom, kagiso, copper, and Windows.
2006-12-15 16:28:17 -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
James Laird
57a786d9c0 [svn-r13063] Cleaned up some memory issues when copying, in preparation for checking in
code to copy shared messages.  Should be fewer memory leaks and fewer
"uninitialized memory reads."

Tested on kagiso, smirom, and Windows.
2006-12-14 13:46:51 -05:00
Albert Cheng
481cfbe0e9 [svn-r13062]
Bug fix.

Description:
Test failed when core and multi VFD is used.

SOlution:
Failure was because the test file was created with the specified VFD access
property but later reopened by default access. That won't work for VFDs such
as multi that produced files that are incompatible with the default sec2
file driver.

Fixed it by using the same VFD access property when it reopens the same test
file.

However, it still fails for the core VFD which does not create any real file.
It is meaningless to try to reopen its file.  Fixed it by adding core to
the incompatible list of VFDs so that it would skip the test.

Split is already coded as incompatible VFD but I don't understand why
it is incompatible in this case. Removed it from the incompatible list.

Tested Platforms:
Copper in which the daily test failed.
2006-12-14 09:34:39 -05:00
Quincey Koziol
d694a6897c [svn-r13058] Description:
Clean up some shared message operations and other minor tweaks, in the
process of trying to solve the messy way that shared object header messages
are implemented in general (not James' work - which is fine :-)

Tested on:
    Mac OS X/32 10.4.8 (amazon)
    FreeBSD/32 4.11 (sleipnir)
    AIX/32 5.? (copper)
2006-12-12 22:19:43 -05:00
James Laird
bcc000dd8a [svn-r13057] Added a copy_file callback for datatype messages. This sets their location
in the destination file, fixing a bug in the (not yet checked-in)
shared message copying changes.

Tested on kagiso, smirom, copper, and Windows.
2006-12-12 16:41:42 -05:00
Quincey Koziol
e9522de4e1 [svn-r13056] Description:
Add H5SM_type_shared() internal routine to determine if a particular
type of header message is sharable in a file.

    Correct off-by-one error in computing B-tree record size for densely
stored attributes' name index.

    Further progress toward supporting shared attributes in dense storage.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-12 15:28:48 -05:00
MuQun Yang
6bf1f234f2 [svn-r13055] update library and DLL project files on windows.
All C tests get passed with VS6.0.
2006-12-12 14:13:59 -05:00
James Laird
3a36c62617 [svn-r13052] Fixed a bug that occured while eliminating "gaps" in object headers when
the gap came immediately before a null message.

Tested on smirom, kagiso, and copper.
2006-12-12 12:12:51 -05:00
Quincey Koziol
bda52fdd68 [svn-r13051] Description:
Minor code neatening, before making snapshot...

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-12 10:10:57 -05:00
Binh-Minh Ribler
45f11bf42e [svn-r13050] Purpose: Code cleanup
Description:
   Fixed several mismatched types causing daily test to fail on tg-login.

Platforms tested:
   Linux 2.6 (kagiso) - just to make sure no ill effects.
   I cannot login to tg-login3 so am going to watch for it on daily test
   tonight.
2006-12-12 09:25:42 -05:00
Quincey Koziol
9c167bcfa7 [svn-r13048] Description:
Set up tests for next phase of testing dense attribute operations, with
shared attributes.

    Other minor code cleanups...

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-11 21:10:05 -05:00
Quincey Koziol
2f665b89ce [svn-r13047] Description:
Add "attribute exists" internal routine to make verifying that an attribute
with the same name doesn't already exist easier.

    Tweak "trace" script to produce more whitespace in H5TRACE macros, in order
to make them easier to read.

    Minor other whitespace cleanups

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-11 20:49:59 -05:00
Quincey Koziol
f98b337a92 [svn-r13046] Description:
Minor editing & code cleanups.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-11 19:57:10 -05:00
Quincey Koziol
a867b8f5fd [svn-r13045] Description:
Switch from using H5L_index_t/H5L_INDEX_<foo> to H5_index_t/H5_INDEX_<foo>
in order to accommodate indices on aspects of attributes as well as links.

    Add basic support for deleting attributes in dense storage (needs more
support/tests for shared attributes in dense storage still).

    Misc. cleanups, etc.

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-11 19:42:19 -05:00
HDF Tester
aa00130f30 [svn-r13044] Updated for the new SVN server location. 2006-12-11 17:43:51 -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
dc73eca159 [svn-r13041] Description:
Migrate "internalish" attribute operations into new source code file.

    Add test & basic support for opening attributes in dense storage (shared
attributes not tested or supported yet).

Tested on:
    Linux/32 2.6 (chicago)
    Linux/64 2.6 (chicago2)
2006-12-11 14:02:38 -05:00
Binh-Minh Ribler
e8d8f70f51 [svn-r13039] Purpose: Add test
Description:
    Added test_string_attr to partially test recent fix of Attribute::read.

Platforms tested:
    AIX 5.1 (copper)
    Linux 2.6 (kagiso)
    SunOS 5.8 64-bit (sol)
2006-12-10 21:26:48 -05:00
Binh-Minh Ribler
c0ffce092f [svn-r13038] Purpose: Fixed user reported bug
Description:
    In Attribute::read, H5Aread malloc's memory for the read data buffer,
    so Attribute::read shouldn't allocate the buffer, but needs to
    deallocate with HDfree.

    Fixed a typo in H5StrType.cpp, should pass PredType::C_S1 to "copy"
    instead of H5T_C_S1.

Platforms tested:
    AIX 5.1 (copper)
    Linux 2.6 (kagiso)
    SunOS 5.8 64-bit (sol)
2006-12-10 20:23:04 -05:00
Quincey Koziol
14e9b46ca2 [svn-r13037] Description:
Move attribute creation code out of H5Omessage.c and into H5Oattr.c

Tested on:
    FreeBSD/32 4.11 (sleipnir)
2006-12-08 17:05:52 -05:00
Elena Pourmal
a4c1120bd1 [svn-r13036] Description:
VMS maintenance: brought command file up-to-date.

Platforms tested:
	VMS server at Boeing
2006-12-08 16:50:05 -05:00
Raymond Lu
37aa258534 [svn-r13035] Fixed a small problem in Line 782 - buf[6] should be set to 0, too. 2006-12-08 15:27:21 -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