Commit Graph

11177 Commits

Author SHA1 Message Date
Allen Byrne
808390dbd9 [svn-r16863] MS version of strtoull() is named strtoui64()
Tested:
   XP32 VS2005
2009-04-27 10:26:11 -05:00
Raymond Lu
cdcd4a7305 [svn-r16859] I fixed some memory leak of H5LTdtype_to_text in the HL library. I fixed some test
verification, too.

Tested on jam - simple change.
2009-04-24 16:13:20 -05:00
Quincey Koziol
8dd1e72365 [svn-r16858] Description:
Tweak down the size of datatype created for dataset, so that the
elements are a reasonable size and the dataset's size can fit into a 64-bit
value for storing in the file.

Tested on:
	FreeBSD/64 6.3 (liberty)
	(too minor for h5committest)
2009-04-24 15:39:00 -05:00
Quincey Koziol
d7d8cf1159 [svn-r16851] Description:
Clean up compiler warnings

Tested on:
    Mac OS X/32 10.5.6 (amazon)
    (too minor to require h5committest)
2009-04-23 17:55:18 -05:00
Quincey Koziol
b2df2fa677 [svn-r16849] Description:
Bring r16848 from revise_chunks branch to trunk:

	Add test (and bugfixes) for detecting if a filter makes a chunk size
larger than can be encoded in a 32-bit variable (in the file).

Tested on:
       FreeBSD/32 6.3 (duty) in debug mode
	(h5committest not needed, multi-platform testing done on branch)
2009-04-23 16:52:45 -05:00
Quincey Koziol
f098d20ab9 [svn-r16847] Description:
Bring r16846 from revise_chunks branch back to trunk:

	Fix broken (for how long?) H5_ASSIGN_OVERFLOW macro to actually detect
overflows during assignments, along with several errors it [now] detected.

	Cleaned up a fix minor warnings and/or pieces of code also.

Tested on:
	FreeBSD/32 6.3 (duty) in debug mode
	(h5committest not needed - multi-platform test performed on branch)
2009-04-23 13:25:16 -05:00
Quincey Koziol
b1f8b21130 [svn-r16845] Description:
Updated with new warning flags from gcc 4.4

Tested:
    FreeBSD/64 6.3 (liberty) w/gcc 4.4.0
2009-04-23 12:31:34 -05:00
Mike McGreevy
bfc195feba [svn-r16844] Description:
Adding dependency to h5repack test script.

    h5repack.sh needs h5repacktst to run first.

Tested:

    Problem only appeared on Glory, but tested the dependence
    manually on jam by trying to run only the script and checking
    that it first ran the h5repacktst test program.
2009-04-22 16:57:17 -05:00
Albert Cheng
08889823ea [svn-r16842] Bug fix:
If the AR command has embedded shell separators such as the case of
"AR =  ar -X 64", $AR ends up as a blank.

Solution:
Put quotes around the command substitution string to protect against embedded
separators. Applied the same to both AR and RANLIB assignments.

Tested:
At Up (AIX 5.3) only because that was where I discovered the error
when AR is  ar -X 64
2009-04-22 16:06:24 -05:00
Raymond Lu
8b307b67d2 [svn-r16839] Added a new test case for h5repack_named_dtypes.h5.
Not test yet.
2009-04-22 14:52:56 -05:00
Raymond Lu
be8cb6411a [svn-r16835] Allow an error class to use other class's major or minor errors. Added a test for it, too.
Tested on jam - simple change.
2009-04-22 13:39:10 -05:00
Albert Cheng
37906de73c [svn-r16829] Bug fix.
In Up (AIX system), the insert_libhdf5_settings() infinite looped because
it never found EOF.  Man getc in another system said:
   "If  the  integer  value returned by getc() is stored into a variable of
   type char and then compared against the integer constant EOF, the  com-
   parison may never succeed, because sign-extension of a variable of type
   char on widening to integer is implementation-defined."

Solution:
Changed inchar from type char to int fixed the problem.
Morale of the story: RTFM or HTCW (heed the compiler warnings).

Tested:
Up (AIX 5.3).
2009-04-21 18:28:58 -05:00
Frank Baker
7d55aa03a2 [svn-r16826] Description:
Updated and restructured "Copyright Notice & License Terms" document 
    per new standard.
2009-04-21 18:05:36 -05:00
Neil Fortner
f9fdf6333a [svn-r16817] Fix problem in H5Z.c with --disable-deprecated-symbols
Tested: jam (--disable-deprecated-symbols)
2009-04-21 10:40:11 -05:00
Binh-Minh Ribler
d301ea9246 [svn-r16816] Description:
Added member function Attribute::getInMemDataSize(), which is a wrapper
    of several C calls, to simplify getting the attribute's data size in
    memory.  Used this new function in Attribute::read to get the fixed-len
    string attribute data.

    Added tests to tattr.cpp.

Platforms tested:
    Linux/32 2.6 (jam)
    FreeBSD/64 6.3 (liberty)
    SunOS 5.10 (linew)
2009-04-21 09:10:43 -05:00
Binh-Minh Ribler
eed7245d7c [svn-r16815] Description:
Added member function Attribute::getInMemDataSize(), which is a wrapper
    of several C calls, to simplify getting the attribute's data size in
    memory.  Used this new function in Attribute::read to get the fixed-len
    string attribute data.

    Added to tests in tattr.cpp.

Platforms tested:
    Linux/32 2.6 (jam)
    FreeBSD/64 6.3 (liberty)
    SunOS 5.10 (linew)
2009-04-21 09:09:23 -05:00
Albert Cheng
9bca9d684b [svn-r16814] New feature(Bug 230):
Embed the content of libhdf5.settings into the hdf5 executables so that an
"orphaned" executables can display (via the Unix strings command, for example)
the library settings used to build the executables.

This is a prototype implementation. Much improvement is needed.

configure.in:
    Added the --disable-embedded-libinfo option to disable this feature.
configure:
src/H5config.h.in:
    Generated by autotools like automake.
src/H5detect.c:
    Implement insert_libhdf5_settings() to insert the contents of
    libhdf5.settings into the library as an extern string variable so that it
    is included in all HDF5 executable.  Much improvement is needed.
fortran/src/Makefile.in:
    Auto-generated by bin/reconfigure. (i.e., I did make any changes to cause
    its direct regeneration).

Tested:
Jam serial, using default and --disable-embedded-libinfo, configure options.
2009-04-20 21:02:46 -05:00
Pedro Vicente Nunes
c60f5a8429 [svn-r16810] added the words "Not comparable" in the not comparable messages
tested: linux
2009-04-20 15:59:40 -05:00
Neil Fortner
8c074d5c03 [svn-r16807] Purpose: Fix bug 1533
Description:
Previously, there was no versioning for H5Z_class_t.  This prevented applications
written for 1.6 using custom filters from being able to use the 1.8 library.
There is now an H5Z_class1_t and H5Z_class2_t to enable compatibility.  H5Zregister is
*not* versioned, it determines which version of the struct has been passed in by the
value of the first field (id or version, both are ints).

Tested: jam, linew, smirom (h5committest), jam (--with-default-api-version=v16)
2009-04-20 14:12:19 -05:00
Scott Wegner
b8036fc5f6 [svn-r16806] Purpose: Add new h5repack tests to Windows
Description:
Three new tests were added to the h5repack test script in rev.16802.  This checkin brings those new tests to Windows as well.

Tested:
VS2005 on WinXP x64
2009-04-20 13:24:28 -05:00
Neil Fortner
c7aa94f4ec [svn-r16803] Purpose: Fix bug 1548
Description:
When writing data to a dataset, the data transform was performed after type conversion.
This caused an error if the file type was non-native.  This has been changed so data
transforms are always performed on the memory type.

Tested: jam, linew. smirom (h5committest)
2009-04-20 11:54:52 -05:00
Neil Fortner
6d13b7a243 [svn-r16800] Purpose: Fix bug 1516
Description:
h5repack previously would not take named datatypes into consideration when copying
datasets and attributes.  This would cause extra anonymous datatypes in the target file
at best, and cause errors halfway through the repacking at worst.  h5repack should now
always handle named datatypes correctly.  Named datatypes are also now converted to the
native type when -n is given.

Tested: jam, linew, smirom (h5committest)
2009-04-20 11:37:47 -05:00
Scot Breitenfeld
22acfa9fe1 [svn-r16799] corrected typos in fortran API 2009-04-20 11:26:17 -05:00
Scot Breitenfeld
4336eea98e [svn-r16797] Changed
H5D_CHUNK_CACHE_NSLOTS_DEFAULT_F
H5D_CHUNK_CACHE_NBYTES_DEFAULT_F
H5D_CHUNK_CACHE_W0_DEFAULT_F

to

H5D_CHUNK_CACHE_NSLOTS_DFLT_F
H5D_CHUNK_CACHE_NBYTES_DFLT_F
H5D_CHUNK_CACHE_W0_DFLT_F

to get under the 31 limit for variable names
2009-04-20 11:00:09 -05:00
Scot Breitenfeld
2414c3e600 [svn-r16796] Changed
H5D_CHUNK_CACHE_NSLOTS_DEFAULT_F
H5D_CHUNK_CACHE_NBYTES_DEFAULT_F
H5D_CHUNK_CACHE_W0_DEFAULT_F

to

H5D_CHUNK_CACHE_NSLOTS_DFLT_F
H5D_CHUNK_CACHE_NBYTES_DFLT_F
H5D_CHUNK_CACHE_W0_DFLT_F

to get under the 31 limit for variable names
2009-04-20 10:59:21 -05:00
Mike McGreevy
bc36a358d1 [svn-r16792] Description:
- Updated bin/reconfigure to use latest version of automake (1.10.2). 
      Re-generated Makefile.in's by running bin/reconfigure.

    - Added libtool version numbers to c++, fortran, hl, hl c++, and hl fortran
      libraries.

Tested:

    jam, liberty, smirom
2009-04-20 01:00:11 -05:00
Albert Cheng
476cbeda79 [svn-r16789] Bug Fix (Bug 1398):
For gcc v4.3 and v4.4, with production mode,
if -O3 is used, H5Tinit.c would fail to compile. Actually bad H5Tinit.c is
produced.

If -O (same as -O1) is used, H5Tinit.c compiled okay but test/dt_arith
would fail with:
Testing hard normalized long double -> signed char conversions        time: comm
and terminated abnormally

When -O0 (no optimizatio) is used, H5Tinit.c compilete okay and all tests
passed.

Solution:
Changed the config/gnu-flags to use -O0 for gcc v4.3 and 4.4 for production
flags  for now so that build and tests would work. Still need to investigate
if the error is due to Gcc optimization bug or our code errors.

Tested:
In liberty with gcc43 and gcc44. Also, tested in jam and smirom with
older versions of gcc.
There are no gcc 43 or 44 compilers installed in other THG machines that
I know.
2009-04-20 00:00:44 -05:00
Binh-Minh Ribler
aa775d9738 [svn-r16787] Description:
Fixed to pass parameters to H5Awrite/H5Aread correctly so that
    all Attribute::write and Attribute::read methods work correctly
    for both fixed-length and variable-length string attributes.

    Added more test cases.

Platforms tested:
    Linux/32 2.6 (jam)
    FreeBSD/64 6.3 (liberty)
    SunOS 5.10 (linew)
2009-04-18 23:35:19 -05:00
Pedro Vicente Nunes
ceffce7203 [svn-r16785] added missing test and compare cases inside compounds for nan
tested: linux
2009-04-18 15:55:24 -05:00
Scot Breitenfeld
0ef325886d [svn-r16781] Added information about new fortran wrappers added:
H5D_h5dget_access_plist_f
   H5I_h5iis_valid_f
   H5P_h5pset_chunk_cache_f
   H5P_h5pget_chunk_cache_f
2009-04-17 12:58:05 -05:00
Scot Breitenfeld
b0cecde98b [svn-r16780] Description:
Added tests for the new APIs:

H5D_H5DGET_ACCESS_PLIST_F
H5I_H5IIS_VALID_F
H5P_H5PSET_CHUNK_CACHE_F
H5P_H5PGET_CHUNK_CACHE_F

Platforms tested: 

smirom: pgf90, ifort
linew
liberty: gcc43, gfortran43, gcc44, gfortran44
2009-04-17 12:13:01 -05:00
Raymond Lu
4e26920aaf [svn-r16779] A minor correction of previous checkin. The original files created with v1.6 library could
be deleted by cleanup routine.  I corrected it in this checkin.

Tested on jam - simple change.
2009-04-17 10:52:38 -05:00
Scot Breitenfeld
d006d0e093 [svn-r16777] Description:
Added APIs:

H5P_H5PSET_CHUNK_CACHE_F
H5P_H5PGET_CHUNK_CACHE_F

Platforms tested:

smirom: pgf90 ifort
2009-04-17 09:33:40 -05:00
Scot Breitenfeld
8bd9bb1b7f [svn-r16776] Description:
Added APIs:

H5D_mp_H5DGET_ACCESS_PLIST_F
H5I_mp_H5IIS_VALID_F
H5P_mp_H5PSET_CHUNK_CACHE_F
H5P_mp_H5PGET_CHUNK_CACHE_F
2009-04-17 09:32:13 -05:00
Scot Breitenfeld
4524c415bc [svn-r16775] Desciption:
Added APIs:

H5D_mp_H5DGET_ACCESS_PLIST_F
H5I_mp_H5IIS_VALID_F
H5P_mp_H5PSET_CHUNK_CACHE_F
H5P_mp_H5PGET_CHUNK_CACHE_F
2009-04-17 09:28:19 -05:00
Scot Breitenfeld
4e42b24cce [svn-r16774] Description:
Added Fortran API H5Iis_valid_f

Platforms tested: smirom - ifort pgf90
2009-04-17 09:26:52 -05:00
Scot Breitenfeld
5287eef549 [svn-r16773] Description:
Added Fortran API h5dget_access_plist_f

Platforms Tested: Smirom - pgf90 ifort
2009-04-17 09:24:48 -05:00
Scot Breitenfeld
5246c85346 [svn-r16772] Added explicit declarations for H5D_CHUNK_CACHE_* constants. 2009-04-17 09:20:48 -05:00
Christian Chilan
2c94653c7e [svn-r16770] Modified parallel tests so they can run with arbitrary number of processors.
Tested on jam and abe.
2009-04-16 20:32:13 -05:00
Scot Breitenfeld
7cb785674e [svn-r16768] Added definitions
H5D_CHUNK_CACHE_NSLOTS_DEFAULT_F
H5D_CHUNK_CACHE_NBYTES_DEFAULT_F
H5D_CHUNK_CACHE_W0_DEFAULT_F

used in cache/chunk functions.
2009-04-16 16:41:47 -05:00
Neil Fortner
b04489e6ce [svn-r16766] Fix a comment in H5Pdapl.c, update RELEASE.txt with chages to factory free
lists.

Tested: kate
2009-04-16 16:06:37 -05:00
Albert Cheng
0f48df5d50 [svn-r16760] Fixed a simple typo in the echo statement in the
check-all-install actions.

Tested:
In jam by hand.
2009-04-15 17:12:50 -05:00
Raymond Lu
04f71d5b13 [svn-r16759] The test of family file compatibility with v1.6 used the original family files under the
library source directory.  Since the test opens the files with write mode, it's safer to 
make copies of the original files.  I added the copying step in test_family_compat in vfd.c.
I changed the Makefile.am to clean up the copied files.  I created a new family_v16_00000.h5 
with v1.6 library.

Tested on jam - supposed to be simple change.
2009-04-15 16:42:02 -05:00
Albert Cheng
745d7ff835 [svn-r16754] bug fix (ID 1345):
Use environment variable instead of command parameter to test
the install via $DESTDIR test.

Tested:
Jam and smirom by hand. (no h5committest which does not test this change.)
2009-04-15 09:17:18 -05:00
Albert Cheng
773f3686f0 [svn-r16749] New feature (Bug ID: 1345):
Added a Make target of check-all-install to test the correctness of
installing via the prefix= or $DESTDIR options.

Platforms tested:
h5committested and jam serial mode. Then test check-all-install by hand.
2009-04-14 17:07:24 -05:00
Allen Byrne
2049a2691c [svn-r16745] Added fixed bug 1536, about the include for the _getcwd() function. 2009-04-14 09:06:22 -05:00
Allen Byrne
3a95ee66a0 [svn-r16742] Added #include <direct.h> to windows section. As discussed in Bug 1536, this include is needed to supply the _getcwd() function.
Tested: XP 32 VS2005
2009-04-14 08:19:00 -05:00
Larry Knox
0eacb97a15 [svn-r16738] Snapshot version 1.9 release 38 2009-04-11 08:24:23 -05:00
Raymond Lu
9d308a023b [svn-r16736] Added H5Groot.c to src/make.com. Took out space_overflow.c from test/check.com and test/make.com.
Not tested yet.
2009-04-10 15:52:48 -05:00
Pedro Vicente Nunes
60bf8e9768 [svn-r16734] added
- h5diff new flag, -c, --compare, list objects that are not comparable.
        PVN - 2009/4/2 - 1368
    - h5diff new flag, -N, --nan, avoids NaNs detection. PVN - 2009/4/2
2009-04-10 15:44:04 -05:00