2455 Commits

Author SHA1 Message Date
Raymond Lu
479bdb0bbd [svn-r9984] Purpose: New feature and test
Description:  Added support of hardware conversion between "long double" and integers(mainly
in H5Tconv.c) and some test cases(mainly in test/dtypes.c).


Platforms tested:  h5committest and fuss.

Misc. update:  RELEASE.txt
2005-02-10 17:19:39 -05:00
Xiaowen Wu
33d0a6838d [svn-r9982] Purpose:
bug fix plus minor modifications
Description:
The nbit filter makes a wrong assumption that function H5Z_set_local_nbit
and H5Z_filter_nbit will be called together. It uses 2 local variables
outside these functions to pass information from H5Z_set_local_nbit to
H5Z_filter_nbit.

Solution:
Store the two variables in cd_values[], which can be retrieved when
H5Z_filter_nbit is called independently.
Platforms tested:
heping, copper
Misc. update:
2005-02-10 16:50:37 -05:00
Xuan Bai
5bf4aaff68 [svn-r9978] Purpose:
Bug fix.

Description:
Quincey changed "entern H5_DLL" to "H5_DLLVAR" in hdf5/src/H5FLprivate.h which caused some symbols can not be exported correctly by HDF5 DLL.

Solution:
Change "H5_DLLVAR" back to "extern H5_DLL".

Platforms tested:
Visual C++ 6.0 on Windows XP.
.NET 2003 on Windows XP.
Heping (Linux 2.4).

(Note: I talked with Elena and Quincey about this failure.  Quincey asked me to check in this fix.)

Misc. update:
2005-02-10 13:27:11 -05:00
Quincey Koziol
9f76f83f48 [svn-r9971] Purpose:
New feature

Description:
    Checkpoint v2 B-tree code after getting 2 leaf record redistribution
working and tested.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/parallel
    Too minor to require h5committest
2005-02-09 16:32:07 -05:00
Raymond Lu
86c18b7e4f [svn-r9966] Purpose: Bug fix
Description: H5Tget_member_value didn't return correct value if called after
H5Tenum_valueof.  It's because there's a sorting on the members of enum type in
H5Tenum_valueof which changed the order of members.

Solution:  Made a copy of original type and do sorting on it to protect the
original order.

Platforms tested:  fuss; tested v1.6 with h5committest

Misc. update:  RELEASE.txt
2005-02-09 10:54:44 -05:00
Quincey Koziol
71434c4d03 [svn-r9962] Purpose:
Bug fix & code update

Description:
    Fix error in new free-list factory routines that was causing errors on
tungsten, et al.

    Also, checkpoint v2 B-tree code.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/parallel
    Linux 2.4 (tungsten)
    Otherwise too minor to require h5committest
2005-02-08 16:48:14 -05:00
Raymond Lu
70c0ba03ce [svn-r9959] Purpose: Bug fix
Description: For variable-length string, H5Tget_class returned H5T_STRING as
its class.  But H5Tdetect_class and H5Tget_member_class considered it as
H5T_VLEN.  This is fixed to let all these 3 functions treat it as H5T_STRING.
Some test cases have been added to dtypes.c


Platforms tested:  heping - already tested for v1.6 with h5committest

Misc. update:  RELEASE.txt
2005-02-08 13:30:29 -05:00
Quincey Koziol
b4153b4f5e [svn-r9955] Purpose:
New feature & bug fix

Description:
    Allow h5debug tool to dump "test" v2 B-trees correctly.

    Also, fix incorrect parameter passing that was causing failures on
various platforms.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    AIX 5.2 (copper)
2005-02-07 20:03:48 -05:00
Raymond Lu
3ca585e46c [svn-r9951] Purpose: Minor bug fix.
Description:  The byte order for all 1-byte integer types was fixed as little-endian
even on a big-endian machine.  This's corrected in h5detect.c.  When types are only
1 byte long, a native int is used substitute the type to detect byte order.   Some tools
like h5dump and h5repack are also corrected in this case.


Platforms tested:  fuss, copper, sol.(There're some failures from the recent configure
change).

Misc. update:  Information in the RELEASE.txt.
2005-02-07 12:56:20 -05:00
Quincey Koziol
1c3c5b18ba [svn-r9940] Purpose:
Bug fix

Description:
    Correct the record count for the newly split root node

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/parallel
    Too minor to require h5committest
2005-02-04 16:33:42 -05:00
Quincey Koziol
24770bf218 [svn-r9939] Purpose:
New feature

Description:
    Expand v2 B-tree code to support splitting the root node when enough
records are inserted and move metadata cache callbacks into their own source
file.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/parallel
    Too minor for h5committest
2005-02-04 16:14:42 -05:00
Robert E. McGrath
5592642133 [svn-r9937] Purpose:
Bug

Description:
Assertion failure

Solution:
don't call decrement when the object doesn't exist.

Platforms tested:
shanti,verbena

Misc. update:
2005-02-04 12:22:29 -05:00
Quincey Koziol
c3f7be36ce [svn-r9933] Purpose:
Bug fix

Description:
    Add names for new B-tree objects to metadata cache code.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor for h5committest
2005-02-04 08:15:47 -05:00
James Laird
db2575baa9 [svn-r9930]
Purpose:
Bug fix

Description:
Parallel builds were breaking in tools/lib

Solution:
talign didn't realize it depended on libh5tools.la because its
dependencies listed the full path (../../tools/lib/libh5tools.la).
Changed this, and made similar changes in a couple of other
directories.
This checkin should also add the --foreign flag to every Makefile.in

Platforms tested:
sleipnir (minor change)
2005-02-03 16:59:40 -05:00
Quincey Koziol
0b332ace5e [svn-r9928] Purpose:
New feature

Description:
    Add basic code for new B-tree implementation.  They don't do much yet,
aren't hooked up to anything yet and the format may change, but I'd like to
start getting them into the daily tests.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/parallel
    Too minor to require h5committest
2005-02-03 14:59:05 -05:00
James Laird
ab243bf369 [svn-r9920] Purpose:
Bug fix

Description:
Found the permanant fix to automake/CVS dependency problem

Solution:
Added AM_MAINTAINER_MODE macro to configure.in.
Now automake will never try to regenerate Makefiles, Makefiles.in,
configure, H5config.h, etc. when they are out of date, nor will it
print any warnings.
Developers should  be very very careful to use reconfigure script,
and can add --enable-maintainer-mode flag to configure on heping
to regenerate these files correctly.

Platforms tested:
heping sleipnir copper
2005-02-02 15:59:46 -05:00
James Laird
ed8685acd2 [svn-r9915] Purpose:
Bug fix

Description:
Configuration files' timestamps were incorrect.

Solution:
Update Makefiles.in.  Also added correct paths to autotools on heping,
so heping build should be able to re-generate configuration files even
if they are still broken.

Platforms tested:
sleipnir
2005-02-02 11:00:36 -05:00
James Laird
e3dacb31be [svn-r9912] Purpose:
Bug fix

Description:
Dependencies between configure files (aclocal, configure.in, configure,
Makefiles.am and .in) are still causing Makefiles to try to run autotools
during build.

Solution:
Committed all Makefiles.in to update their timestamps.
As a temporary measure, forcibly prevented automake from running
autotools during build by redefining the variables it uses.

Platforms tested:
sleipnir (No changes to Makefile content)
2005-02-01 16:05:33 -05:00
James Laird
30bfb1e0ea [svn-r9907] Purpose:
Bug fix

Description:
Different compilers use different flags to include Fortran module files

Solution:
Changed boilerplate to use configure variable rather than hardcoded -M flag.

Platforms tested:
sleipnir, sol, copper
2005-02-01 10:27:37 -05:00
James Laird
26303241fe [svn-r9902] Purpose:
Configuration feature

Description:
HDF5 now uses automake to generate Makefiles

Solution:
Makefile.in files are now generated from Makefile.am files.
To reconfigure (after chaning a Makefile.am or configure.in):
/bin/sh bin/reconfigure.sh

Platforms tested:
Many
2005-01-31 22:17:02 -05:00
Xiaowen Wu
5e057c32bd [svn-r9894] Purpose:
Tests modification and improvements of nbit filter.

Description:
Add dynamic allocation of array storing nbit parameters and check if
the number of parameters exceeds what cd_values[] can store; change
function prototypes to improve poratability; minor modification to
improve efficiency of the nbit algorithm.

Platforms tested:
AIX 5.1 and Linux 2.4.

Misc. update:
2005-01-31 10:03:48 -05:00
Quincey Koziol
24c134e28b [svn-r9865] Purpose:
Bug fix

Description:
    Catch another way that vsnprintf() can fail (this time on the HP) and
deal with that.

Platforms tested:
    HP/UX 11.x (kelgia)
    Doesn't affect other platforms
2005-01-24 13:50:31 -05:00
Quincey Koziol
563a8dd140 [svn-r9861] Purpose:
Bug fix

Description:
    Add detect vasprintf() routine and use it instead of vsnprintf() when
formatting error descriptions if it's available.

    Added configure test to detect "broken" vsnprintf() implementations which
don't return the correct number of character for strings that are too long to
fit into the buffer provided (currently a problem on the SGIs and probably the
HP).

    Re-wrote error formatting code in H5Epush_stack() to handle broken
vsnprintf() implementations, etc.

Platforms tested:
    IRIX64 6.5 (modi4)
    h5committest
2005-01-23 22:26:37 -05:00
Quincey Koziol
d363f95d6d [svn-r9858] Purpose:
Code cleanup

Description:
    Clean up a few rements from the Pablo removal

Platforms tested:
    None, very minor
2005-01-22 08:38:49 -05:00
Elena Pourmal
c1df1b3ea4 [svn-r9857] Purpose: Maintenance
Description: Removed PABLO from the source

Solution:

Platforms tested: arabica with 64-bit, copper with parallel,
                  heping with GNU C and C++ and PGI fortran (but
                  I disabled hl, there is some weird problem only
                  on heping: F9XMODFLAG is not
                  propagated to the Makefile files

Misc. update:
2005-01-21 20:16:57 -05:00
Xiaowen Wu
78cfc78d18 [svn-r9854] Purpose:
For N-bit filter,
Adding parameter mappings from HDF5 compound datatype, array datatype and atomic datatype
to cd_values inside HDF5 library.
N-bit filter should work with these datatypes(string and variable length datatype haven't been
considered) in the near future.

Description:
This is for debugging purpose, N-bit filter won't be tested in the daily test.

Solution:

Platforms tested:
AIX 5.1 and Linux 2.4. Arabica is too slow. Hopefully shanti can be used soon.

Misc. update:
2005-01-21 13:13:49 -05:00
John Mainzer
3b90c189ca [svn-r9850] Purpose:
1) Provide facilities in cache to allow us to avoid a potential cache
   consistency bug in the parallel case.

2) Clean up a off by one sanity checking bug.

3) Turn off execution of long running tests in debug mode.


Description:

1) In the parallel case, all writes to metadata must be collective,
   but reads may not be.  In pricipal, this allows us to different
   contents in different caches.  This isn't a problem as long as the
   correct data is always on disk, but unless we can force certain
   writes immediately, that need not be the case.

2) & 3) should need no further explanation.


Solution:

1) Add code allowing us to mark cache entries, and then force
   these entries to be flushed at a later time.

   Note that to actually avoid the bug, we will have to modify
   existing code to use these new features.

2) & 3) should need no further explanation.


Platforms tested:

heping (serial debug and production)

committest (copper, sol, and heping).  test failed on heping in the
c++ portion of the build, but at Quincey's siggestion, I am proceeding
with the checkin.


Misc. update:
2005-01-20 17:40:37 -05:00
Raymond Lu
3d83546b36 [svn-r9849] Purpose: New test and a few bug fix
Description:  Test conversion from native integer to derived floating-point type and convert back;
test conversion from derived floating-point to derived floating-point types and convert back.  Fixed
a few minor bugs related to type conversion in the library.


Platforms tested: h5committest and fuss
2005-01-20 17:19:13 -05:00
Raymond Lu
dad89387a3 [svn-r9840] Purpose: Bug fix and new test
Description:  The functions for user-define floating-point type, like
H5Tset_fields, H5Tset_offset, H5Tset_precision, H5Tset_size, have some
minor bugs.  For error checking, the library didn't include offset value
somehow.

Solution:  Corrected those bugs.

Platforms tested: h5committest and fuss

Misc. update:
2005-01-20 12:32:06 -05:00
Quincey Koziol
fabb06712b [svn-r9838] Purpose:
Bug fix

Description:
    Correctly retire the H5E_LEN setting, now that the FORTRAN and C++ APIs
have been corrected to not use it either.

Solution:
    Pass in the string buffer length for FORTRAN

    In the C++ API, call H5Eget_msg() in a manner similar to the way
H5Fget_name() is called.

Platforms tested:
    Linux 2.4 (heping) w/FORTRAN & C++
    Solaris 2.7 (arabica) w/FORTRAN & C++
2005-01-18 21:51:12 -05:00
Quincey Koziol
b8f7cdc48d [svn-r9837] Purpose:
Bug fix

Description:
    Calling HDvsnprintf() several times (should be twice) is incorrect
without calling va_end() and va_start() again.

Solution:
    Call va_end() and va_start() before calling HDvsnprintf() again.

Platforms tested:
    Linux 2.4/x86_64 (mir)
    Too minor to require h5committest
2005-01-18 21:43:04 -05:00
Albert Cheng
fe1fe98f62 [svn-r9830] Purpose:
Bug fix

Description:
Fortran and C++ API failed to compile because they need to use
H5E_LEN which was removed.

Solution:
Restored the H5E_LEN definition.
A permenant solution is still needed.

Platforms tested:
H5committested. (heping, sol, and copper all compiled fine again but
sol had an error in testerror.sh which seemed to be a different
problem.
Also tested in tg-NSCA.
2005-01-17 13:08:36 -05:00
Raymond Lu
105bee4ead [svn-r9826] Purpose: Bug fix
Description:  Intel compiler on Linux has some problem to convert long double to
unsigned int correctly.

Solution:  Detect the problem in configure and define a macro to skip this test
if it happens.

Platforms tested: eirene and fuss.  Simple change.
2005-01-14 15:15:34 -05:00
Quincey Koziol
23130b569c [svn-r9825] Purpose:
Bug fix

Description:
    Fix possible overrun in error description string by allocating large enough
string on the fly.

Platforms tested:
    FreeBSD 4.10 (sleipnir)
    Too minor to require h5committest
2005-01-14 14:36:01 -05:00
Albert Cheng
1190d2573e [svn-r9816] Purpose:
cleanup warning messages.

Description:
Compilers complained about local variable shadowed global variables.
The global variables d[], m[], nd, na were having the same names
as local function arguments.  This was a left over when I broke the
original one big chunk of code into separated functions to go around
the Intel Compiler optimization error.

Solution:
Appended the global variables with suffix _g, thus
d[]  =>  d_g[]
m[]  =>  m_g[]
nd   =>  nd_g
na   =>  na_g

This is only an intermediate step.  After the changes tested
out fine by all machines, need to rename the variables to more
meaningful names like dtype_array.

Platforms tested:
Tested in heping by saving the previous generated H5Tinit.c,
regenerated a new H5Tinit.c with the changed code, finally
compared the new and old versions were identical.
2005-01-12 17:55:22 -05:00
Raymond Lu
a985c4c525 [svn-r9807] Purpose: bug fix
Description: For FreeBSD (sleipnir), when GNU compilers do conversion from
unsigned long long to long double, the last 2 bytes of mantissa are lost.
The impact of precision loss isn't significant.

Solution:  Detect this case on FreeBSD in configure, ignore it in dtypes.c
test instead of return failure.

Platforms tested: sleipnir, fuss, modi4.  These systems are mainly concerned.
2005-01-11 13:17:01 -05:00
Quincey Koziol
76ba1a99d3 [svn-r9805] Purpose:
Code cleanup

Description:
    Remove obsolete support for Watcom C compiler.

Platforms tested:
    None - too minor to require any.
2005-01-11 10:43:13 -05:00
Raymond Lu
7faa297ea6 [svn-r9783] Purpose: Bug fix
Description: For HP-UX 11.00, the compiler generates 'floating exception'
when converting 'long double' to most of integer types.

Solution: Define a macro for all other systems except HP-UX 11.00.  Hard set
this macro to 'no' in config/hpux11.00 to skip this test for HP-UX 11.00.

Platforms tested:  modi4, kelgia, fuss
2005-01-08 15:56:12 -05:00
Xiaowen Wu
19efec650d [svn-r9782] Purpose:
Description:

Solution:

Platforms tested:

Misc. update:
2005-01-08 13:23:57 -05:00
Quincey Koziol
0977cfecd9 [svn-r9780] Purpose:
Bug fix

Description:
    Print the thread ID in a little more portable of a fashion, disallowing
negative thread IDs.

Platforms tested:
    Linux 2.4 (heping) w/threadsafe
    Too Minor to require h5committest
2005-01-08 10:26:31 -05:00
Quincey Koziol
3e582deaae [svn-r9778] Purpose:
Remove feature

Description:
    Retire threaded, balanced binary tree code from HDF5 use.  Requiescat in
    pace...

    Also, regenerate dependencies files.

Platforms tested:
    FreeBSD 4.10 (sleipnir) w/parallel
    Too minor to require full h5committesting  (the code is already
    disconnected from everything except its tests)
2005-01-07 21:06:46 -05:00
Raymond Lu
78293f94d7 [svn-r9767] Purpose: Bug fix
Description:  2 small things to correct:
1.  the change in H5config.h.in was wept out by a later change.
2.  long long isn't supported on Windows.  It's long_long instead.


Platforms tested:  fuss(linux 2.4)
2005-01-06 18:06:34 -05:00
Quincey Koziol
60316f893a [svn-r9766] Purpose:
Code cleanup

Description:
    Transition FPHDF5 to use skip lists for various internal data structures,
instead of threaded, balanced binary trees.

    Also, simplify some of FPHDF5 code some, etc.

Platforms tested:
    FreeBSD 4.10 (sleipnir) w/parallel & fphdf5
    Too minor to require h5committest
2005-01-06 17:36:42 -05:00
Quincey Koziol
e9109df3f2 [svn-r9764] Purpose:
New feature

Description:
    Add some additional features to the skip list code that was needed to
fully support all the features that the threaded, balanced binary tree code
has.

    Also, updated the property list code to take advantage of a few of the
new features.

Platforms tested:
    FreeBSD 4.10 (sleipnir)
    Too minor to require h5committest
2005-01-06 17:30:10 -05:00
Quincey Koziol
4357fccbd3 [svn-r9762] Purpose:
Code cleanup

Description:
    Change pablo mask to conform to the style used by the rest of the library

Platforms tested:
    None needed - very, very minor
2005-01-06 16:21:52 -05:00
Albert Cheng
9dba568fc3 [svn-r9761] Purpose:
Bug fix.

Description:
threadsafe test (ttsafe) would seg-fault if --disable-production --enable-debug
mode is used.  Reason was that the fstack.nused field was not initialized
when created.

Solution:
Init new fstack.nused with 0.

Platforms tested:
Tested in mir, using development/debug mode.
Did not "h5committested" as change is trivial and limited to threadsafe mode.
2005-01-06 16:16:16 -05:00
MuQun Yang
46bfff070f [svn-r9759] Purpose:
To add n-bit implementation inside HDF5.

Description:
This check-in for implementation is for debugging purpose.
N-bit filter should be used for the time being.

Solution:

Platforms tested:
sol 2.7, Linux 2.4, Aix 5.1

Misc. update:
2005-01-06 14:08:14 -05:00
MuQun Yang
ad633eafcc [svn-r9758] Purpose:
Adding framework of N-bit filter

Description:
N-bit filter is required for NetCDF project.
To add N-bit filter, configure.in configure, Makefile.in under src and other
filter-related source code needs to be updated.
Currently, N-bit tests are turned off from the library. So the change will affect daily test.

Solution:

Platforms tested:
sol 2.7, linux 2.4, aix 5.1

Misc. update:
2005-01-06 14:04:15 -05:00
Raymond Lu
82f6a72ec9 [svn-r9755] Purpose: New feature
Description:  Start to support software conversion between long double and
all integers.

Solution:  No major changes to the algorithm.  Changes to configure is to
exclude SGI for long double to integers test because there're too many problems
in their compiler.

Platforms tested:  h5committest, modi4, fuss, Teragrid, arabica

Misc. update:  RELEASE.txt
2005-01-06 13:17:59 -05:00
Xuan Bai
63f32322e8 [svn-r9745] Purpose:
Bug fix.

Description:
When building H5Z.c with Visual C++ 6.0, I got the following warning message:
H5Z.c(1241) : warning C4013: 'SZ_encoder_enabled' undefined; assuming extern returning int

Solution:
The header file szlib.h should be included in H5Z.c in order to use SZ_encoder_enabled() function.
Add the following script into H5Z.c:

#ifdef H5_HAVE_SZLIB_H
#   include "szlib.h"
#endif

Platforms tested:
Heping (Linux)
Visual C++ 6.0 on Windows XP/2000.
.NET on Windows XP.
(Tested with SZIP-with-encoder and SZIP-without-encoder).


Misc. update:
2005-01-05 11:22:28 -05:00