Commit Graph

6604 Commits

Author SHA1 Message Date
Quincey Koziol
c274ffe1c9 [svn-r9466] Purpose:
Bug fix

Description:
    Clean up potential buffer overflow in strncpy()

Platforms tested:
    FreeBSD 4.10 (sleipnir)
    Too minor to require h5committest
2004-10-26 21:12:02 -05:00
Xuan Bai
a75d43be95 [svn-r9465] Purpose:
New feature.

Description:
Added several library and tools tests project and updated testing batch file.

Solution:
1. Add dangle, dangledll, dtransform, dtransformdll, filename, filenamedll projects under hdf5\test directory.
2. Add talign and taligndll projects under hdf5\tools directory.
3. Add the above 6 projects to the dependencies of "all" project.
4. Update hdf5test.bat under hdf5\test directory to include the above tests.

Platforms tested:
Microsoft Visual C++ 6.0 on Windows 2000/XP.
(Note: As hdf5\tools\lib\talign.c file includes a header file unistd.h, which does not exist in Windows system, we need to update this file to include a Windows Macro to exclude this header file in Windows.)

Misc. update:
Updated hdf5\src\H5Tinit.c
2004-10-26 20:49:33 -05:00
Leon Arber
22696535f5 [svn-r9464] Purpose:
Bug fix.

Description:
dtransform test still failed on windows because it was attempting to create a
ullong dataset.

Solution:
Removed creation of ullong dataset as well if H5_ULLONG_TO_FP_CAST_WORKS was
not defined.

Platforms tested:
windows
2004-10-26 16:48:15 -05:00
Leon Arber
1a869e39dc [svn-r9463] Purpose:
Bug fix.

Description:
unsigned long long test fails on windows because windows cannot convert from
ullong to double

Solution:
Skip unsigned long long test if H5_ULLONG_TO_FP_CAST_WORKS is not defined.

Platforms tested:
eirene and will do windows test asap.
2004-10-26 16:04:31 -05:00
Leon Arber
4c8429e3d2 [svn-r9462] Purpose:
Added tests
Code cleanup

Description:
New tests added for new version of H5Pget_data_transform and additional tests
to make sure that error conditions are handled properly by both
H5Pset_data_transform and H5Pget_data_transform.

Also cleaned up code to make it more compact.

Platforms tested:
sol + eirene + copper

Misc. update:
2004-10-26 15:47:22 -05:00
Leon Arber
74d574632f [svn-r9461] Purpose:
Changed functionality of H5Pget_data_transform

Description:
H5Pget_data_transform no longer allocates memory for the transform string...it
is the user's responsbility to do so.

Solution:
Made H5Pget_data_transform be more in line with other functions that do
similiar things:

User now has to allocate memory for the string themselves and specify how much
of the string should be copied into the buffer.  There is also support for
querying the length of the transform string.

Platforms tested:
sol + eirene + copper

Misc. update:
2004-10-26 15:45:52 -05:00
Quincey Koziol
3b63db5f7f [svn-r9459] Purpose:
Code cleanup

Description:
    Clean up minor warnings and align with release branch.


Platforms tested:
    FreeBSD 4.10 (sleipnir) w/parallel & FPH5
    Solaris 2.7 (arabica) w/production mode
    Linux 2.4 (heping) w/C++ and FORTRAN
2004-10-26 15:07:10 -05:00
HDF Admin
b232f57b9b [svn-r9457] Purpose:
Bug fix.

Description:
The previous H5_ULLONG_TO_FP_CAST_WORKS fix does not quite work
since the problem was an error during compiling while the fix
was trying to check for the error condition during runtime.
The MS-Compiler still complains about not supporting ULLONG
to Float.

Solution:
A temperary patch is to have two #define of H5Z_XFORM_TYPE_OP
according to if H5_ULLONG_TO_FP_CAST_WORKS is defined.  This
works but a better solution is needed.

Platforms tested:
Windows (by Kent) and heping (Linux by me).
2004-10-25 18:01:30 -05:00
HDF Admin
39f4b8d0c3 [svn-r9455] Snapshot version 1.7 release 40 2004-10-24 05:22:24 -05:00
Albert Cheng
63a3195fac [svn-r9453] Purpose:
Improvement.

Description:
Made all processes print hostname() by default so that it is easier
to spot problems.

Platforms tested:
Tested in copper only.  It is a trivial small change.

Misc. update:
2004-10-22 17:42:05 -05:00
Albert Cheng
4a6f857a04 [svn-r9452] Updated. 2004-10-22 16:16:49 -05:00
Albert Cheng
06a81051f0 [svn-r9450] Purpose:
"Improvement"?

Description:
Long double is a standard C89 type.  Promoted it from
a conditional tested type to an assumed supported type.

Platforms tested:
H5committested.

Misc. update:
2004-10-22 16:11:16 -05:00
Quincey Koziol
b4d39e7adb [svn-r9447] Purpose:
Bug fix

Description:
    Correct values used in "space utilization" equation: the 'used' and
'total' values were backwards.

Platforms tested:
    FreeBSD 4.10 (sleipnir)
    Too minor to require h5committest
2004-10-22 16:03:50 -05:00
Raymond Lu
cacc8fa4c6 [svn-r9445] Purpose: Bug fix
Description:  "char" was considered as always "signed char" in data type conversion.  However, ISO C leaves
the definition of "char" to individual implementation.  i.e. for IBM AIX C compiler, it's treated as "unsigned
char".

Solution: Changed all "char" to "signed char".  Don't even do "char" anymore because its definition is up
to each vendor.

Platforms tested:  h5committest
2004-10-21 11:04:08 -05:00
Xuan Bai
229d19bc72 [svn-r9444] Purpose:
New feature.

Description:
Add a simple HDF5 C++ example and a simple HDF5 Fortran example.

Solution:
1. Add a simple HDF5 C++ example to test HDF5 library and tools under hdf5\c++\examples\ directory.
2. Add a simple HDF5 Fortran example to test HDF5 library and tools under hdf5\fortran\examples\ directory.
3. Add an HDF5 C++ example installation batch file installcppexamples.bat under hdf5\ directory.
4. Add an HDF5 C++ example test batch file testcppexamples.bat under hdf5\c++\examples\ directory.
5. Add an HDF5 Fortran example installation batch file installf90examples.bat under hdf5\directory.
(Note: HDF5 Fortran example test batch file will be added later as there is no Fortran example tests on Unix now.)

Platforms tested:
Microsoft Visual Studio 6.0 on Windows 2000/XP.
Microsoft Visual Studio .NET 2003 on Windows XP (C example only).

Misc. update:
2004-10-20 17:25:20 -05:00
Leon Arber
b7a3a55b77 [svn-r9442] Purpose:
Add code more code to test H5Pget_data_transform and H5Pset_data_transform

Description:
Added a test to verify that H5Pset_data_transform will correctly replace a
data transform with a new one and properly use the new transform on the data.

Added a test to verify that H5Pget_data_transform properly returns the
transform string.

Platforms tested:
sol + eirene + copper

Misc. update:
2004-10-20 16:09:54 -05:00
Leon Arber
5ec05c10e8 [svn-r9441] Purpose:
Code refactor
Changed functionality of H5Pget_data_transform

Description:
Rewrote much of H5Ztrans.c to use macros, which cut down on the amount of code
significantly.

H5Pget_data_transform now allocates memory for the data transform string,
copies the string into this memory, and
returns this pointer to the user, instead of returning a pointer to the
internal transform string stored by hdf.  It is the user's responsibility to free
this memory when they are done with it.

Platforms tested:
sol + eirene + copper

Misc. update:
2004-10-20 16:08:35 -05:00
Leon Arber
b6c9d2afa7 [svn-r9440] Purpose:
Bug fix

Description:
Fix typo in #ifdef for unsigned long long to double conversion.
Changed WIN32 check to H5_ULLONG_TO_FP_CAST_WORKS
This check-in (and the one before it) also includes a large code-refactoring
that is still in progress.

Solution:
the ifdef for the plus case was checking unsigned long instead of unsigned
long long.  Moved the check to the right location.

Platforms tested:
sol+eirene

Misc. update:
2004-10-19 19:21:52 -05:00
Xuan Bai
cc168abb1e [svn-r9439] Purpose:
Update.

Description:
h5repack_layout.c was removed from hdf5/tools/h5repack directory.  HDF5 windows projects using this file should be updated.

Solution:
Delete h5repack_layout.c from h5repack, h5repackdll, and h5repacktst projects.

Platforms tested:
Visual Studio 6.0 on Windows 2000/XP.

Misc. update:
2004-10-19 16:25:33 -05:00
Pedro Vicente Nunes
8ef059b4f7 [svn-r9436] Purpose:
bug fix

Description:

Description:
one case was not handled in the combination of input options (layout and filters)


Solution:
redo the algorythm that handles all cases


Solution:

Platforms tested:
linux

Misc. update:
2004-10-19 11:11:16 -05:00
Quincey Koziol
a4c0ed0374 [svn-r9433] Purpose:
Bug fix

Description:
    Fix core dump when flushing a file with a newly created attribute which
hasn't had a value written to it still open.

Solution:
    Write the attribute fill value when appropriate.

Platforms tested:
    FreeBSd 4.10 (sleipnir)
    Linux 2.4 (verbena)
    Solaris 2.7 (arabica)
2004-10-18 22:31:11 -05:00
Leon Arber
4f846baa4a [svn-r9432] Purpose:
Skip test.

Description:
Known failure in char and schar types for dtransform test on AIX and SGI.

Solution:
Temporary skip this test until bug is fixed.

Platforms tested:
copper (minor change)
2004-10-18 17:54:55 -05:00
Leon Arber
b6fa15d1bb [svn-r9431] Purpose:
Bug fix.

Description:
If a subtest failed, the error would not propogate properly to the main
function, thereby resulting in a succesful run, even though the test failed.

Solution:
Fixed error return values.  The dtransform test will now fail for real.

Platforms tested:
sol + eirene + copper
2004-10-18 17:47:53 -05:00
Leon Arber
24cb7fe160 [svn-r9430] Purpose:
Bug fix.

Description:
The windows compiler apparently cannot convert from unsigned long long to
double.  This conversion is necessary for the data transform to work properly
in some cases.

Solution:
Added #ifdef to check for windows and issue error when user attempts to do a
data transform on a long long type.

Platforms tested:
sol + eirene
2004-10-18 17:46:04 -05:00
Pedro Vicente Nunes
d8fdc955cc [svn-r9428] Purpose:
bug fix

Description:
when specifying both an input object e.g -f mydset:GZIP=1 and a defined chunk -l CHUNK=20x20
the filter used a defined default chunk instead

Solution:
add a check for the input chunk

Platforms tested:
linux (small change)


Misc. update:
2004-10-18 11:42:12 -05:00
Albert Cheng
1de960855f [svn-r9427] Purpose:
Bug fix.

Description:
AIX defines different sizes of the signed and unsigned int_fast8_t.
Changed the code to check each type individually and do not verify
they must be the same size.

Platforms tested:
Tested in copper only since the change is trivial.

Misc. update:
2004-10-14 16:25:59 -05:00
Albert Cheng
535c97a581 [svn-r9425] Purpose:
Bug fix

Description:
Removed the cache values of sizeof signed and unsigned int_fast8_t
and int_fast16_t since the vendor changes them often.

Platforms tested:
Tested in Copper only since it affected it only.

Misc. update:
2004-10-14 16:23:39 -05:00
Leon Arber
841a072c93 [svn-r9423] Purpose:
Description:
Make the test check transforms on all types, and expanded testing for unsigned types.

Solution:

Platforms tested:
sol + eirene
2004-10-14 14:56:27 -05:00
Leon Arber
f86b69ffb3 [svn-r9422] Purpose:
Description:
Code optimization and refactoring.
Added support for llong, ullong, and ldouble

Solution:
Significantly cut down on the amount of code required to do the transform,
while making the operations more efficient.

Platforms tested:
sol + eirene
2004-10-14 14:55:29 -05:00
Albert Cheng
a7073e240e [svn-r9420] Bug fix.
tconfig.c:
    Verified only the unsigned int types and did not detect inconsistencies
    on signed type such as int_fast16_t.
    Changed code to verify both signed and unsigned int types wherever
    applicable.  It also depends on signed and unsigned forms of an
    int type must be of the same sizes.

testhdf5.c:
    Shorten the configure test name to 'config'--easier to type.

Tested on LLNL Frost and Snow.  Will test in Copper after commit.
2004-10-14 14:12:44 -05:00
Albert Cheng
7d1bf17b3d [svn-r9419] Bug fix.
tconfig.c:
    Verified only the unsigned int types and did not detect inconsistencies
    on signed type such as int_fast16_t.
    Changed code to verify both signed and unsigned int types wherever
    applicable.  It also depends on signed and unsigned forms of an
    int type must be of the same sizes.

testhdf5.c:
    Shorten the configure test name to 'config'--easier to type.

Tested on LLNL Frost and Snow.  Will test in Copper after commit.
2004-10-14 14:12:44 -05:00
Albert Cheng
087da3d5c9 [svn-r9418] Bug fix (bug 205).
The script does not use $RUNSERIAL to execute programs.
This failed badly in parallel systems like Tflops.

Patched $RUNSERIAL in to make it work.

Tested in tflops only.
2004-10-13 23:18:11 -05:00
Quincey Koziol
f102816b0f [svn-r9413] Purpose:
Code cleanup

Description:
    Fix a couple of return values from NULL -> FAIL.

Platforms tested:
    FreeBSD 4.10 (sleipnir)
    Too minor to require h5committest
2004-10-12 15:59:32 -05:00
Quincey Koziol
e74b160268 [svn-r9412] Purpose:
Bug fix

Description:
    When mpicc/mpif90 is a wrapper around a PGI compiler, turn on less
agressive optimization options to avoid testing errors.

Platforms tested:
    Linux 2.4 (verbena)
    Too minor to require h5committest
2004-10-12 15:54:25 -05:00
Quincey Koziol
75c31b8c26 [svn-r9411] Purpose:
Bug fix

Description:
    When mpicc/mpif90 is a wrapper around a PGI compiler, turn on less
agressive optimization options to avoid testing errors.

Platforms tested:
    Linux 2.4 (verbena)
    Too minor to require h5committest
2004-10-12 15:54:23 -05:00
Quincey Koziol
d86b3c0205 [svn-r9410] Purpose:
Code cleanup

Description:
    Update FORTRAN configuration test code to be more syntacticly correct
and not generate errors with stricter standards checking in the compiler.

Platforms tested:
    Linux 2.4 (verbena)
    Too minor to require h5committest
2004-10-12 15:49:28 -05:00
Quincey Koziol
86d0132279 [svn-r9407] Purpose:
Code cleanup/bug fix

Description:
    Remove the undocumented "$NOFP" shell variable which would allow production
builds without removing the stack frame.  This was cascading between C and
FORTRAN builds and causing problems.

Solution:
    Hard-code removing the stack frame for now.  Users would have needed to
read the configure scripts anyway, so there's not really much benefit to the
extra knob.  Users who need this functionality (production builds with stack
frames) are debugging probably, so they will need to modify the script and
build their own version of the library now.

Platforms tested:
    Linux 2.4 (verbena)
    Too minor to require h5committest
2004-10-12 11:11:27 -05:00
Quincey Koziol
3b057e2f23 [svn-r9405] Purpose:
Bug fix

Description:
    Correct/update detection of Linux platforms.

    Also, refactor common code out of different architectures for Linux builds.

Platforms tested:
    Linux 2.4 (verbena)
    Too minor to require h5commitest
2004-10-12 11:05:31 -05:00
Quincey Koziol
6af5973295 [svn-r9404] Purpose:
Code cleanup

Description:
    Default to using mpif90 if CC=mpicc and --enable-fortran flag is given,
but no F9X compiler is set.

Platforms tested:
    Linux 2.4 (verbena)
    Too minor to require h5committest
2004-10-12 11:04:14 -05:00
Quincey Koziol
ba39f35a63 [svn-r9400] Purpose:
Code cleanup

Description:
    Minor code cleanups and tweaks.

Platforms tested:
    FreeBSD 4.10 (sleipnir) w/parallel
    Solaris 2.7 (arabica)
    Linux 2.4 (verbena) w/fortran
    Otherwise, too minor to require full h5committest
2004-10-11 21:11:36 -05:00
Frank Baker
f19ed8390b [svn-r9399] Purpose:
Copy edits, primarily to correct several spelling errors.
Platforms tested:
    Mozilla
2004-10-11 16:24:33 -05:00
Quincey Koziol
e1c1f5cc15 [svn-r9395] Purpose:
Bug fix

Description:
    Correct a couple of array bounds issues exposed by the PGI compiler

Platforms tested:
    Linux 2.4 (verbena) w/PGI compilers
    Too minor too requie h5committest
2004-10-10 14:22:03 -05:00
Quincey Koziol
166580844b [svn-r9393] Purpose:
Code cleanup

Description:
    Clean up formatting and some mis-casts, etc.

Platforms tested:
    FreeBSD 4.10 (sleipnir)
    Linux 2.4 (verbena)
    Solaris 2.7 (arabica)
2004-10-08 23:28:33 -05:00
Quincey Koziol
68732f591f [svn-r9390] Purpose:
Bug fix

Description:
    Tweak PGI compiler auto-detection to work for version 5.0 compilers as
well as version 5.2 compilers.

Platforms tested:
    Linux 2.4 (verbena) w/PGI compilers
    Not tested with rest of h5committest platforms
2004-10-08 21:58:16 -05:00
Quincey Koziol
a3db31b7ef [svn-r9389] Purpose:
Regenerate

Description:
    Regenerate with autoconf 2.53 (not [easily] available on tungsten)

Platforms tested:
    Linux 2.4 (verbena)
    Too minor to require h5committest
2004-10-08 21:47:06 -05:00
Quincey Koziol
951d6d826a [svn-r9385] *** empty log message *** 2004-10-08 21:39:07 -05:00
Quincey Koziol
bf4f24a497 [svn-r9384] Purpose:
Refactor and update fortran configuration

Description:
    Changed configure.in to include the production, debugging and profiling
flags for FORTRAN in the command line.

    Added '-flags' files for PGI and Intel C compilers

    Added '-fflags' files for PGI and Intel FORTRAN compilers

    Updated 'gnu-flags' file for GNU C compiler to not modify compiler flags
when gcc is not being used.

    Make detection of the correct FORTRAN compiler a bit smarter for Linux
platforms.  (And carried over some of the minor changes to other affected
machines)

Platforms tested:
    Linux 2.4 (tungsten) w/PGI and Intel C & FORTRAN compilers.
    Changes not tested by h5committest
2004-10-08 21:38:50 -05:00
Quincey Koziol
a25cc355a3 [svn-r9382] *** empty log message *** 2004-10-08 13:41:44 -05:00
Xuan Bai
5489fe8ca0 [svn-r9379] Purpose:
Update and bug fix.

Description:
Update Windows projects setting as new source code was added.
Fix a bug in hdf5build.bat file.

Solution:
1. Add hdf5/tools/lib/h5tools_type.c into toolslib and toolslibD projects.
2. There was a minor bug with hdf5build.bat file when it is used to build C library only.  Remove redundant scripts in the batch file.

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

Misc. update:
2004-10-06 16:29:21 -05:00
Quincey Koziol
458576c826 [svn-r9375] Purpose:
Bug fix

Description:
    Close a couple of memory leaks

Platforms tested:
    FreeBSD 4.10 (sleipnir)
    Solaris 2.7 (arabica) w/purify
    Linux 2.4 (verbena)
    too minor for h5committest
2004-10-06 11:35:18 -05:00