Commit Graph

5108 Commits

Author SHA1 Message Date
Quincey Koziol
88598fbeaa [svn-r7082] Purpose:
Bug fix (backward compatibility)

Description:
    Track changes to allow H5Giterate to pass along iterator callback's return
    value

    Also, improve range checking on "index" parameter to disallow invalid
    starting indices (<0 or > the number of objects in a group).

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-23 08:27:02 -05:00
Quincey Koziol
8cb471ae99 [svn-r7081] Purpose:
Bug fix (backward compatibility)

Description:
    Changes we've made during development of the 1.5.x branch had broken the
    feature of allowing user's callbacks to H5Giterate to return a value
    through the library back to the application which called H5Giterate.

Solution:
    Better testing for this feature.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-23 08:25:06 -05:00
Quincey Koziol
403f1bac7c [svn-r7080] Purpose:
Bug fix (backward compatibility)

Description:
    Changes we've made during development of the 1.5.x branch had broken the
    feature of allowing user's callbacks to H5Giterate to return a value
    through the library back to the application which called H5Giterate.

Solution:
    Correctly pass along iterator callback return value and adjust internal
    library code to conform to this design.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-23 08:24:56 -05:00
Frank Baker
ff818d2d47 [svn-r7079]
Purpose:
    Edits based on review feedback.

Description:
    H5Dget_offset -- Corrected return value.
    H5Dcreate -- Added a brief mention of "fill values and space allocation"
                 and a set of cross-references.
    H5Dfill -- Added H5Dcreate to the cross-reference list.

Platforms tested:
    IE 5, Safari
2003-06-20 17:18:33 -05:00
Frank Baker
25454c655d [svn-r7078]
Purpose:
    Edits based on review feedback.

Description:
    H5Sselect_elements -- Remove H5S_SELECT_OR and associated comments.

Platforms tested:
    IE 5, Safari
2003-06-20 17:11:54 -05:00
Frank Baker
769014bdc8 [svn-r7077]
Purpose:
    Edits based on review feedback.

Description:
    H5Tis_variable_str
    H5Tdetect_class
        -- Added notes regarding applicability of these 2 functions.
    H5Tget_native_type -- Copy edits.
        Added note to close returned identifier with H5Tclose and
        clarification WRT array, compoud, etc datatypes.
    Misc copy edits.

Platforms tested:
    IE 5, Safari
2003-06-20 17:07:02 -05:00
Frank Baker
2edd657fa0 [svn-r7076]
Purpose:
    Add new tools:
        h5diff
        h5perf
        h5redeploy
        h5c++
    Corrections to h5import

Description:
    h5diff, h5perf, h5redeploy, h5c++ -- Added these tools.
    h5import -- Corrected the description of the naming convention for
        output datasets.  Other edits based on review comments.
    Copy edits and source code formatting.

Platforms tested:
    IE 5, Safari
2003-06-20 16:53:38 -05:00
Bill Wendling
186565693d [svn-r7075] Purpose:
Bug Fix

Description:
    Quincey discovered that the new compiler on SOL needs the
    -features=tmplife flag. However, this flag is only available for
    version 5.3 of the compiler (and up, we're assuming).

Solution:
    Add this flag only if the version of the compiler is 5.3 or greater.

Platforms tested:
    Sol and Arabica (only affects solaris machines)

Misc. update:
2003-06-20 16:02:51 -05:00
Quincey Koziol
e0d8e90d61 [svn-r7074] Purpose:
Bump version # after another private snapshot for SAF team.
2003-06-20 10:42:36 -05:00
Quincey Koziol
17eb14fe72 [svn-r7073] Purpose:
Expand test

Description:
    Expanded # of dangling objects from 2 to 1000, to stress ID cleanup code
in library more.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-20 10:22:37 -05:00
Quincey Koziol
d12e5f8ebf [svn-r7072] Purpose:
Bug fix & code cleanup

Description:
    The H5F_get_objects_cb was returning SUCCEED (i.e. 0) to indicate that
the ID iterator should exit early, but the ID iterator needs a non-zero return
from a callback to exit early.

    Also, track change to ID iterator "operator data" to be non-const

Solution:
    Changed H5F_get_objects_cb() to return "TRUE" instead, to indicate an
early exit for the ID iterator.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-20 10:21:35 -05:00
Quincey Koziol
970416829f [svn-r7071] Purpose:
Code cleanup

Description:
    Tweak internal iterator over IDs to not require constant "operator" data.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-20 10:19:18 -05:00
Quincey Koziol
e34f6e8c9e [svn-r7070] Purpose:
Code cleanup

Description:
    Add another dependency to the API shutdown code to not shut down the ID
management code until the other APIs which use IDs are shut down.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-20 10:17:22 -05:00
Bill Wendling
381d6eb5fb [svn-r7065] Purpose:
Bug Fix

Description:
	On Copper, the redefinition of the PACKAGE_* #defined macros
	in H5pubconf_fortran.h was causing havoc with the compiler now
	that we specify ANSI C with it.

Solution:
	Renamed the PACKAGE_* variables to FORTRAN_PACKAGE_* instead.

Platforms tested:
	Copper (small fix...needed to determine the sed command worked).

Misc. update:
2003-06-19 19:41:08 -05:00
Elena Pourmal
0489e2726c [svn-r7064]
Purpose: IA64 (titan) cleanup and backing up previous change to the
         H5f90global.f90 file

Description: We defined IA64 variable for C-stubs compilation
             on IA64 systems. But system defines __ia64 and
             it is better to use it as we do on all other systems.
             Fortran test failed since global variable became undefined.

Solution: Removed -DIA64 and use __ia64 instead.
          Somehow removal of COMMON statements from H5f90global.f90
          caused errors on titan. Most of the global fortran variables became
          undefined. I am not sure why it is happenning. It may be ecc compiler
          or there is an error in the Fortran code. Since it may take some time
          to track it, I decided to remove this change.
Platforms tested: titan, arabica

Misc. update:
2003-06-19 14:38:32 -05:00
Elena Pourmal
18185298e4 [svn-r7063]
Purpose: IA64 (titan) cleanup

Description: We defined IA64 variable for C-stubs compilation
             on IA64 systems. But system defines __ia64 and
             it is better to use it as we do on all other systems.

Solution: Removed -DIA64 from compilation flags since H5f90i.h header
          files uses __ia64 variable that is defined on IA64 systems.

Platforms tested: titan

Misc. update:
2003-06-19 14:33:12 -05:00
Elena Pourmal
2c924c0df1 [svn-r7062]
Purpose: Bug fix

Description: On Cray SV1 multi-driver test failed while closing
             access property list.
             This test creates a file using multi driver, writes
             dataset, closes the file; reopens the file and reads
             back data. At some point I commented out call to
             h5pget_access_plist_f, but forgot to comment out corresponding
             h5pclose_f.

Solution: removed comment on the  h5pget_access_plist_f subroutine.

Platforms tested: Cray SV1, copper with parallel, Winodws with VF, arabica.
                  There is some caveat left. I have a call to h5pget_fapl_multi_f
                  that follows h5pget_access_plist_f, it was also commented out.
                  This call works everywhere except Windows. Fortran part looks OK,
                  since my test program uses h5pget_fapl_multi_f before it closes the
                  file in the same test, and it works. Probably it is a library
                  bug that needs confirmation. For now I will leave second
                  h5pget_fapl_multi_f commented out.

Misc. update:
2003-06-18 16:21:51 -05:00
Quincey Koziol
7c1054856a [svn-r7061] Purpose:
Bump version # after creating private snapshot.
2003-06-18 15:59:35 -05:00
Quincey Koziol
4fc73028ed [svn-r7060] Purpose:
Code cleanup

Description:
    Change some variables that are keywords in C++ to non-keywords.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    too minor to require full h5committest
2003-06-18 15:54:19 -05:00
Quincey Koziol
1aeaa7fbb1 [svn-r7059] Purpose:
Refactoring

Description:
    Track changes to H5Fget_obj_<foo> API functions.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-18 15:52:54 -05:00
Quincey Koziol
b6fca58d92 [svn-r7058] Purpose:
Bug fix and refactored code

Description:
    Return the file space we have allocated already when a dataset creation
fails.

    Also track the change to the H5Fget_obj_<foo> APIs

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-18 15:51:49 -05:00
Quincey Koziol
d0d6ef4a90 [svn-r7057] Purpose:
Bug fix, refactored code

Description:
    Fixed closing objects for "strong" file degree, which previously would
sometime attempt to close the same object twice (when a named datatype and
a dataset which used it were both left open before the file was closed).

    Stopped datatype iteration from querying for the group entry of non-named
datatypes.

    Added attributes to the list of objects that can be queried by
H5Fget_obj_count and H5Fget_obj_ids, since they can hold open a file also.

    Took a suggestion from Robb to return the number of open objects
in the return values of H5Fget_obj_count and H5Fget_obj_ids.

    Also, added a "max_objs" parameter to the H5Fget_obj_ids function, so that
it can work well with staticly allocated arrays.


Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-18 15:50:22 -05:00
Quincey Koziol
4a4962dfef [svn-r7056] Purpose:
More tests

Description:
    Added tests to make certain that failed dataset, group, named datatype and
attribute creations clean up the file space they allocated before failing.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-18 15:45:26 -05:00
Quincey Koziol
ed1e28ac6a [svn-r7055] Purpose:
Refactored code

Description:
    Moved duplicated "get_file_size()" function from a couple of tests into a
central location.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-18 15:43:39 -05:00
Quincey Koziol
f15b2278d6 [svn-r7054] Purpose:
Improved tests

Description:
    Added test for dangling attributes.

    Also added code to test with weak, semi & strong file close degrees for
all tests.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-18 15:42:39 -05:00
Quincey Koziol
4e3716dd66 [svn-r7053] Purpose:
Bug fix.

Description:
    When a duplicate object was attempted to be created, the library would
leak file memory and object references in the file, potentially causing an
infinite loop when shutting the library down.

Solution:
    Clean up after ourselves... :-)

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-18 15:41:28 -05:00
Quincey Koziol
780d678ddd [svn-r7052] Purpose:
Code cleanup

Description:
    Correct name of H5FD_term_interface function in FUNC_ENTER macro.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-18 15:39:34 -05:00
Quincey Koziol
dfe4c63e19 [svn-r7051] Purpose:
Bug fix

Description:
    When objects were left open in a file, the API shutdown code would end
up closing property lists "out from underneath" files that were left open
pending the objects in the being closed.  This caused problems later when
file objects would try to access their property list and fail to close,
causing an infinite loop in the library shutdown.

Solution:
    Create some dependencies in the order that APIs are shut down, trying to
close "higher" level APIs before closing "low" level APIs.  This still isn't
precise, but it does work correctly now.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-18 15:38:17 -05:00
Elena Pourmal
e29d7fc478 [svn-r7050]
Purpose: Bug fix

Description: On Windows Fortran szip test failed in debug mode.
             It turned out that C-stub for H5Pget_filter_by_id didn't
             calculate the correct value of namelen parameter that is
             passed to the H5Pget_filter_by_id function. As a result
             fortran parameter that hold creation property id was overwritten
             and h5fdcreate_f failed.



Solution: Fixed the value of namelen parameter to the H5Pget_filter_by_id
          function.

Platforms tested: Windows 2000 with VF both debu and release modes,
                  sol, verbena.

Misc. update:
2003-06-18 12:14:57 -05:00
Albert Cheng
4a412814c0 [svn-r7049] Purpose:
updated for the added C++ config file.

Description:

Solution:

Platforms tested:

Misc. update:
2003-06-18 08:53:58 -05:00
Albert Cheng
8c701c23c9 [svn-r7047] Purpose:
Improvement

Description:
If $CXX is not defined, configure will try a list of possible
C++ compiler name.  That is not always desireable.

Solution:
Change configure to combine all powerpc-ibm-aix* to one version.
Add xlC as the default $CXX value.

Platforms tested:
Tested in Copper only since the change affect AIX machine only.

Misc. update:
2003-06-18 00:02:23 -05:00
Albert Cheng
3d0317ad11 [svn-r7046] Purpose:
bug fix

Description:
Parallel binary generated in copper could not run without first
setting LIBPATH to some values.  This is because libtool putting
a very restrictive libray path into the generated library.

Solution:
There had been hack in before for the other IBM SP systems
identified by hostname.  Add copper to the list.

Also, narrow down the hostname patter for Nersc Seaborg
machine a little bit.

Platforms tested:
Copper parallel only since that is the only place it failed.

Misc. update:
2003-06-17 23:04:42 -05:00
Elena Pourmal
6a15443e7c [svn-r7045]
Purpose: Code cleanup

Description: For some unknown to myself reason I used COMMON in the
             HDF5 module that has to be included in all Fortran
             HDF5 application. This is redundant and may cause
             problems for optimization. Also COMMON is an "OLD"
             feature and shouldn't be used.

Solution: Removed COMMON statements.

Platforms tested: modi4 sequential and parallel, arabica, vebena,
                  Windows with Visual Fortran.

Misc. update:
2003-06-17 18:16:09 -05:00
Albert Cheng
2b39076849 [svn-r7044] Purpose:
Bug fix.

Description:
the MPI_Get_count test does not work correctly (the macro name
MPI_GET_COUNT_WORKS is not even used in source code.) For some
reason, this test sometimes hangs in AIX.

Solution:
Blocked out the test for now and removed the code later when
things are verified to be correct.

Platforms tested:
h5committested.
ALso tested in Copper (32/64bit parallel, 32 bit serial).

Misc. update:
2003-06-16 12:53:12 -05:00
Quincey Koziol
3f7ec1a4b8 [svn-r7043] Purpose:
Windows portability fix

Description:
    Change "long long"s in code to "long_long"s, which is the portable version
of this type.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    to small for h5committest
2003-06-16 10:57:18 -05:00
Raymond Lu
20848c55fd [svn-r7042] Purpose: bug fix
Description: H5Tget_native_type fails on Cray for compound datatype.

Solution: there's size comfusion in the library on H5T_get_native_int function

Platforms tested: Cray, h5committest

Misc. update:
2003-06-16 10:44:14 -05:00
Albert Cheng
6f94c274c4 [svn-r7041] Purpose:
Improvement

Description:
RUNPARALLEL is setup with default value when --enable-parallel but only if
CC is not set.

Solution:
set RUNPARALLEL to default value of using poe when --enable-parallel
or when an MPI compiler (e.g. mpcc_r) is used.

Platforms tested:
Copper for both 32 and 64 bit, serial and parallel.
(32bit parallel had a hang problem in configure which is a different but
known problem.)
Note that one still need to setenv AR "ar -X64" for 64bit configure.

Misc. update:
2003-06-14 18:35:10 -05:00
Bill Wendling
9807a15018 [svn-r7039]
Purpose:
	Bug Fix

Description:
	There was another GNU-make-ism in the C++ examples Makefile.in
	that I didn't clean up.

Solution:
	Changed the "$<" to the name of the file to compile.

Platforms tested:
	Copper (Small fix...problem was on Copper).

Misc. update:
2003-06-13 15:40:40 -05:00
Quincey Koziol
300e769567 [svn-r7038] Purpose:
Test bug fix

Description:
    The fill time in a dataset with no fill value information created with an
older version of the library was getting set to H5D_FILL_TIME_ALLOC instead of
the new default H5D_FILL_TIME_IFSET and was causing H5Dcreate() calls with that
dataset creation property list to fail now.

Solution:
    Set the new default in the fill time initialization for missing fill value
information.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-13 15:35:24 -05:00
Quincey Koziol
8abb016fa5 [svn-r7037] Purpose:
Bug fix

Description:
    The fill time in a dataset with no fill value information created with an
older version of the library was getting set to H5D_FILL_TIME_ALLOC instead of
the new default H5D_FILL_TIME_IFSET and was causing H5Dcreate() calls with that
dataset creation property list to fail now.

Solution:
    Set the new default in the fill time initialization for missing fill value
information.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-13 15:35:17 -05:00
Quincey Koziol
1b2d904890 [svn-r7036] Purpose:
Code cleanup

Description:
    Add new H5D_FILL_TIME_IFSET value to debugging output.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-13 15:32:15 -05:00
Quincey Koziol
4196708248 [svn-r7035] Purpose:
Driver error

Description:
    The tmtimeo.h5 file was supposed to have been generated from gen_old_mtime.c
which was compiled with a pre-1.5.x version of the library, however it appears
to have been created with a newer version of the library and did not contain
the older form of the mtime object header information that was being tested for.

Solution:
    Run a version of gen_old_mtime that was compiled & linked against an older
version of the library to generate the tmtimeo.h5 file.

    Had to update the modification time used for testing in the mtime.c file
also.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-13 15:30:43 -05:00
Elena Pourmal
bf30ff7eda [svn-r7034]
Purpose: Maintenance for 1.6 release

Description: hdf5 project file did not have new H5Ptest.c and H5Stest.c functions
             included.

Solution: Added new files to the project and included new project to the all_withf90.zip
          file


Platforms tested: This is a pure Windows change; Windows 2000

Misc. update:
2003-06-13 13:54:12 -05:00
Albert Cheng
ce57ff9668 [svn-r7033] Purpose:
minor improvment

Description:
corrected an omission in the usage help output.
Added more parameters checks.

Solution:

Platforms tested:
Only in modi4.

Misc. update:
2003-06-13 01:57:34 -05:00
Elena Pourmal
7fa8474ace [svn-r7032]
Purpose: Maintenance

Description: H5Stest.c and H5Ptest.c were missing from the hdf5 and hdf5dll
             projects. That caused compilation to fail on Windows.

Solution: Added missing files to the projects.

Platforms tested: it is windows change only, so Windows 2002

Misc. update:
2003-06-12 20:05:41 -05:00
Elena Pourmal
f9a93abcbe [svn-r7031]
Purpose: Small bug fix

Description: Variable flag was declared twice. That caused compilation to fail
             on True64 system.

Solution: Deleted one of the declarations.

Platforms tested: True64 at PSC and arabica. Change is trivial, so h5commitest
                  is not necessary.

Misc. update:
2003-06-12 17:54:05 -05:00
Quincey Koziol
b8632ce735 [svn-r7029] Purpose:
New feature/Bug fix

Description:
    Add new fill time value - H5D_FILL_TIME_IFSET which writes the fill value
to a dataset if the user has defined one, otherwise not writing the fill value
to the dataset.

Platforms tested:
    FreeBSD 4.8 (sleipnir) serial & parallel
    h5committest
2003-06-11 22:40:34 -05:00
Quincey Koziol
c0f9f41be8 [svn-r7027] Purpose:
Bug fix

Description:
    MPE instrumentation was out of date and wasn't reporting the correct name
of the API functions in the library.

Platforms tested:
    IBM p690 (copper)
    h5committest not performed because it doesn't test MPE.
2003-06-11 21:59:49 -05:00
Bill Wendling
09da63a8b9 [svn-r7026] Purpose:
Bug Fix

Description:
    On HP-UX platforms, the "open()" function needs to specify that the
    file being created has permissions S_IRWXU, which means that it gives
    read/write/execute permissions to the user who created the file (how
    nice of it!).

Solution:
    Added the S_IRWXU flag to the open() function call.

Platforms tested:
    HP-UX 11
    Arabica,
    Modi4,
    Verbena

Misc. update:
2003-06-11 17:18:37 -05:00
Bill Wendling
2f67716abc [svn-r7025] Purpose:
Bug Fix

Description:
    On Kelgia, the h5c++ script file needs to be explicitly chmod'ed to
    executable.

Solution:
    Placed this at the end of the configure script (just like in the
    other configure scripts).

Platforms tested:
    Kelgia (Very small fix...only needed to test it on one platform).

Misc. update:
2003-06-11 15:46:26 -05:00