6719 Commits

Author SHA1 Message Date
Raymond Lu
e5a161ffda [svn-r9853] Purpose: Minor Bug fix
Description:  A very minor bug fix and some minor changes to reduce the warning messages during
compiling.


Platforms tested: sleipnir and fuss
2005-01-21 10:01:32 -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
Xuan Bai
ea2dd2a44a [svn-r9844] Purpose:
Bug fix.

Description:
Function _flushall() is not available on Cygwin.  So a Cgywin macro is added so the compiler will not call this function when building HDF5 on Cygwin.

Solution:
Change the following codes:

#ifdef H5_HAVE_SYSTEM
#ifdefined WIN32
	_flushall();
#else
    HDsystem ("sync");
    HDsystem ("df >/dev/null");
#endif

to:

#ifdef H5_HAVE_SYSTEM
#if defined(WIN32) && ! defined(__CYGWIN__)
	_flushall();
#else
    HDsystem ("sync");
    HDsystem ("df >/dev/null");
#endif



Platforms tested:
Cygwin 1.5.11, VC 6.0 on XP.
Linux 2.4 (heping)
Solaris 2.7 (arabica)

Misc. update:
2005-01-20 15:46:33 -05:00
Xuan Bai
2ef27d6564 [svn-r9843] Purpose:
A new configuration file hdf5/config/i686-pc-cygwin is add for HDF5 on Cygwin.  So MANIFEST should be updated to include this file.

Description:

Solution:

Platforms tested:

Misc. update:
2005-01-20 15:38:32 -05:00
Xuan Bai
4f79e35b33 [svn-r9842] Purpose:
Add a new configure shell script under /config to support configuration for cygwin.

Description:

Solution:

Platforms tested:
cygwin 1.5.11, VS 6.0 on windows xp, Linux 2.4 and sol 2.7.

Misc. update:
2005-01-20 15:31:31 -05:00
Raymond Lu
72df6506b4 [svn-r9841] Purpose: Minor correction in comments
Platforms tested:  No test needed.
2005-01-20 14:53:56 -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
fda3252166 [svn-r9839] Purpose:
Bug fix

Description:
    Don't print very long description, check that it's correct internally.

Platforms tested:
    Linux 2.4 (heping)
    Solaris 2.7 (arabica)
2005-01-19 15:15:26 -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
Quincey Koziol
7b10edb121 [svn-r9836] Purpose:
Bug fix

Description:
    Fix detection of C++ compiler version number.

Platforms tested:
    Solaris 2.7 (arabica) w/C++
    Solaris 2.8 (sol) w/C++
    Does not require h5committest
2005-01-18 21:37:16 -05:00
Elena Pourmal
a067f22345 [svn-r9835] Purpose: Bug fix/enhancement
Description: Fortran module search directories included ../src and
             ../../fortran/src directories; this was defined in
             acsite.m4 file in order for fortran and HL fortran tests
             to compile. Those flags were included in h5fc and h5pfc scripts.

Solution: Removed those directories from acsite.m4 file and updated
          Makefile.in files.

Platforms tested: sequential on arabica and parallel on copper
                  including HL Fortran

Misc. update:
2005-01-18 20:57:44 -05:00
Elena Pourmal
d6c70331d7 [svn-r9834] Purpose: Bug fix
Description: h5c++ couldn't create object files

Solution: Brought changes from 1.6 to 1.7

Platforms tested: arabica

Misc. update:
2005-01-18 18:53:34 -05:00
Elena Pourmal
f94c6a56ec [svn-r9833] Purpose: Bug fix
Description: h5fc couldn't create object files

Solution: Brought fixes from 1.6 to 1.7

Platforms tested: arabica

Misc. update:
2005-01-18 18:52:17 -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
Binh-Minh Ribler
dfd0b59ae6 [svn-r9829] Purpose: Clean up tests
Description:
    + replaced "goto error" with throw exceptions
    + properly cleanup dynamically allocated memory in failure cases,
        for in some cases, the execution continues on after the failures
        were reported.
    + added test utility class InvalidActionException for when an action
        should cause an exception but doesn't.

Platforms tested:
    SunOS 5.7 (arabica)
    Linux 2.4 (eirene)

    Note that there was an error due to the missing symbol H5E_LEN.  To
    be able to test my changes, I temporarily replaced H5E_LEN in c++/src
    with a constant as in the C tests, before the problem can be fixed.
    This value doesn't effect the C++ tests at all, at this time.
2005-01-16 10:23:34 -05:00
Raymond Lu
35985b6dba [svn-r9827] Purpose: Minor correction
Description:  There was a #ifdef statement with logical AND in it.

Solution:  Change it to #if statement.

Platforms tested: sleipnir and eirene.  Simple change
2005-01-14 15:36:32 -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
Elena Pourmal
d00ec8d85a [svn-r9823]
Purpose: Bug fix

Description: Test reported failure because of the wrong
             testing condition when szip didn't have encoder

Solution: Fixed the code

Platforms tested: copper with
                  SZIP not present
                  SZIP encoder/decoder present
                  SZIP decoder present

Misc. update:
2005-01-13 22:06:07 -05:00
Raymond Lu
96cc43235e [svn-r9819] Purpose: Bug fix
Description:  The fix of the loss problem of the last 2 bytes of mantissa on sleipnir has
not been successful.  It happens when converting from unsigned long long to long double.
 The failure has been on and off.

Solution:  Hard set a macro to disable unsigned long long->long double for FreeBSD until
a good solution is found to solve this elusive problem.

Platforms tested: sleipnir and fuss.  Only sleipnir is concerned.

Misc. update:
2005-01-13 17:01:52 -05:00
Xuan Bai
4cd492dbb4 [svn-r9817] Purpose:
Update H5fortran_types.f90.

Description:
As Quincey implemented hobj_ref_t for in Fortran APIs, HDF5 Fortran type definitions should be updated to include HADDR_T in H5fortran_types.f90.

Solution:
Add the following scripts into hdf5/fortran/src/H5fortran_types.f90:

    INTEGER, PARAMETER :: HADDR_T  = SELECTED_INT_KIND(R_LARGE)

Platforms tested:
Visual Fortran 6.0 on Windows 2000.
Visual Fortran 6.6c on Windows XP.

(Notes: As HDF5 Fortran is not supported with .NET on my XP machines, so I did not test on .NET.                                                                                            Also, as H5fortran_types.f90 is included in all.zip, it will only be used for HDF5 on Windows.  It is not necessary to test it on Unix.)

Misc. update:
2005-01-12 19:10:14 -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
524830d67e [svn-r9814] Purpose: Bug fix
Description:  the last 2 bytes of mantissa can be lost when converting from unsigned long long
to long double.  In last check-in, a fix was made to ignore that precision loss.  But sometimes,
the last 2 bytes are rounded up to the 3rd last byte.

Solution:  Ignore the 3rd last byte, too, when comparing values.

Platforms tested: sleipnir - only this system is concerned.
2005-01-12 15:40:36 -05:00
Frank Baker
39b18b8e0f [svn-r9813] Purpose:
Added H5Pset/get_data_transform
        These are initial entries; they need technical review.
    Removed several deprecated functions that have been commented out
        through several release cycles (H5Pget_deflate and
        H5Pset/get_compression) and several lines of no-longer-used
        template code.
    Minor formatting changes.

Platforms tested:
    Mozilla
2005-01-12 13:18:43 -05:00
Elena Pourmal
72fcca656a [svn-r9811] Purpose: Bug fix
Description: libh5test_fortran.a(la) files were installed by
             make install

Solution: Brought changes back from 1.6

Platforms tested: mir, eirene

Misc. update:
2005-01-11 20:49:04 -05:00
Raymond Lu
7945e9929e [svn-r9809] Purpose: bug fix
Description:  For HP-UX11.00, compiler's casting from 'long double' to most of
integers.  A macro was hard set in config/hpux11.00 before.

Solution:  Let configure detect this case and set the macro.

Platforms tested:  kelgia, fuss, modi4.  These systems are mainly concerned.
2005-01-11 16:05:21 -05:00
Xuan Bai
7b42f786bd [svn-r9808] Purpose:
Update.

Description:
Add N-bit filter feature into HDF5 and update hdf5\src\H5pubconf.h.

Solution:
1. Add hdf5/src/H5Znbit.c into hdf5 and hdf5dll projects.
2. Add the following scripts into H5pubconf.h

   /* comment the following line out if you are not using N-bit filter*/
   /* #define H5_HAVE_FILTER_NBIT 1*/

   If users want to use N-bit filter, remove the comment marks.

Platforms tested:
Tested without N-bit filter on Visual C++ 6.0 on Windows XP.
(Failed building with N-bit filter, I remember that Kent said N-bit filter had not been fully implemented for the time being.)

Misc. update:
2005-01-11 14:17:27 -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
Elena Pourmal
2fcaf3e0f3 [svn-r9803] Purpose: Bug fix
Description: Fortran szip test had a wrong logic; as a result
             wrong return values were reported in the absence of
             the SZIP library, and it was skipped when encoder was
             disable

Solution: Fixed the test
          Now SZIP fortran test should report "SKIP" only
          when SZIP is not configured in.

Platforms tested: tg-login in parallel mode, copper,
                  mir with new PGI compilers and shared
                  SZIP libraries. All platforms were tested with
                  SZIP not available
                  SZIP with encoder/decoder
                  SZIP with decoder only

Misc. update:
2005-01-10 20:37:00 -05:00
Quincey Koziol
c04b612eb4 [svn-r9801] Purpose:
Bug fix

Description:
    Belatedly chase change of hobj_ref_t in C APIs.

Platforms tested:
    FreeBSD 4.10 (sleipnir) w/backward compatibility turned on
    IRIX64 6.5 (modi4) w/FORTRAN
    h5committest
2005-01-10 17:56:20 -05:00
Frank Baker
4eb3251a2c [svn-r9800] Purpose:
Add 2005 to list of copyright dates.
2005-01-10 17:33:46 -05:00
Frank Baker
5451662962 [svn-r9799] Purpose:
Add 2005 to the list of copyright dates.
2005-01-10 17:32:36 -05:00
Xuan Bai
0edafcc36e [svn-r9793] Purpose:
Bug fix.

Description:
Remove 2 redundant files from all.zip.

Solution:
Remove explorer.lnk and desktop.ini from all.zip.
(I do not know why these 2 files were included in all.zip, but these 2 files are not related to HDF5 and should be removed.)

Platforms tested:
Windows 2000/XP.

Misc. update:
2005-01-10 16:36:25 -05:00
Xuan Bai
873b02160c [svn-r9791] Purpose:
Update.

Description:
Update HDF5 windows projects as some source codes had been removed.

Solution:
1. Remove H5TB.c and H5TBprivate.h from hdf5 and hdf5dll projects.
2. Remove ttbbt.c from testhdf5 and testhdf5dll projects.
3. Add libtest and libtestD to dsets_cpp and dsets_cppdll projects.

Platforms tested:
Visual C++ 6.0 on Windows 2000/XP.
.NET on Windows XP.

Misc. update:
2005-01-10 15:58:18 -05:00
John Mainzer
7092659dfa [svn-r9790] Purpose:
Reduce run time of daily tests.


Description:

cache, the test program for the metadata cache has been taking a while
to execute.


Solution:

As a short term "fix", I have commented out all but one of the long
running test functions.  Of course that means that we aren't running
these tests at present.  I'm not sure that this is a good idea.


Platforms tested:

Serial on Heping.


Misc. update:
2005-01-10 12:41:36 -05:00
Binh-Minh Ribler
e5797d173b [svn-r9789] Purpose: Tests cleanup
Description:
    C tests' macro VERIFY casts values to 'long' for all cases.  Since
    there are no operator<< for 'long long' or int64 in VS C++ ostream,
    I casted the hsize_t/hssize_t values passed to verify_val to 'long'
    as well.  If problems arise later, this may have to be specificly
    handled with an overload.

Platforms tested:
    Linux 2.4 (eirene)
    Windows 2000
2005-01-09 23:40:51 -05:00
Binh-Minh Ribler
35ae0442fa [svn-r9788] Purpose: Fix bugzilla #293
Description:
    Added libtest and libtestD to projects dsets_cpp and dsets_cppdll
    to get rid of the "Unresolved symbol: GetTestVerbosity..." errors.

Platforms tested:
    Windows 2000
2005-01-09 16:09:37 -05:00
Albert Cheng
c3e6571ea5 [svn-r9786] Purpose:
bug fix and document.

Description:
Unix and probably other systems too, has a small exit value range
such as 1 byte.  So, exit(256) may end up the same as exit(1).
Added caution message to the exit wrappers and changed test programs
to exit(1) when errors detected.

Platforms tested:
tested in copper.  verified here that exit(256) was treated just like
exit(0).
2005-01-09 01:19:16 -05:00
Albert Cheng
d7f580b7cc [svn-r9784] Purpose:
slight improvement

Description:
Added a time stamp when a host is not reachable.
Added a pause to let timekeeper to complete.

Platforms tested:
It should work.
2005-01-08 16:25:18 -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
9dbf9e9e76 [svn-r9777] Purpose: Bug fix
Description:  Windows .NET 2003 can't handle float(double)->long_long hardware conversion.
While the problem hasn't been determined, we temporarily disable that test by using a
condition macro.  Let Windows define that macro.  Other systems don't have it defined.


Platforms tested:  mir and eirene.
2005-01-07 15:30:23 -05:00
Raymond Lu
9aa2ed3a52 [svn-r9774] Purpose: Bug fix
Description:  integer->long double conversion test failed on some of Linux
systems(mir and eirene) when Intel compiler is used.  I'm not able to repeat
the problem.  So I just made a best guess and fix it.  The problem is minor.
The long double on Linux is 12 bytes long but precision is 10 bytes.  The
unused 2 bytes may have garbage in them causing value comparison wrong.


Platforms tested: mir and eirene with Intel compiler.
before_removing_tbbt_code
2005-01-07 13:40:33 -05:00
Xuan Bai
126657afc7 [svn-r9773] Purpose:
Bug fix.

Description:
Previously, in repacktest.bat, the following script is used to dynamic detection of SZIP encoder:

  testfiles\testh5repack_detect_szip%2\release\testh5repack_detect_szip%2.exe

However, the script does not work if only the debug version of testh5repack_detect_szip.exe is built, for example, in CodeWarrior.

Solution:
Modify above scripts as:

   testfiles\testh5repack_detect_szip%2\%1\testh5repack_detect_szip%2.exe

where %1 is the first input parameter for repacktest, which could be either debug or release

Platforms tested:
Windows XP. (Minor Change)

Misc. update:
2005-01-07 10:44:23 -05:00
MuQun Yang
513a323a24 [svn-r9772] Purpose:
A new file called H5Znbit.c is added in, should be reflected from MANIFEST.

Description:

Solution:

Platforms tested:

Misc. update:
2005-01-07 08:17:07 -05:00