Commit Graph

4776 Commits

Author SHA1 Message Date
Pedro Vicente Nunes
bdaf33ca5a [svn-r6723] Purpose:
changed the h5pubconf.h file the MALLOC_WORKS definition
for code warrior , which is #undef
this is because pt=malloc(0) returns 0 in code warrior
and was causing a failure in the config_malloc_test


Platforms tested:
code warrior

Misc. update:
2003-04-21 17:30:02 -05:00
Pedro Vicente Nunes
48d942b756 [svn-r6722] Purpose:
removed specific code warrior debugging information


Platforms tested:
code warrior

Misc. update:
2003-04-21 17:27:36 -05:00
Pedro Vicente Nunes
8203a4ce4e [svn-r6721] Purpose:
bug fix

Description:
in the close strong case in H5F_close there was a do..while loop
that executed when nfiles==0, calling malloc(0)
this was causing a failure in the close call in Code Warrior, that returns 0
in the call pt=malloc(0)

Solution:
replaced with a while loop (checks the condition before executing)

Platforms tested:
code warrior, linux

Misc. update:
2003-04-21 17:26:32 -05:00
Bill Wendling
535172c8fb [svn-r6720] Purpose:
Bug Fix

Description:
    A resource leak happened if the H5Fget_access_plist() function was
    called. What was happening: the driver ID and info parts of the
    property list copied in H5Fget_access_plist were being overwritten,
    but those properties were copied initially, so we lost information.

    Added calls to the H5Fget_access_plist function to get the PList and
    then immediately close it. It would cause an infinite loop if there
    is a resource leak.

Solution:
    Before copying over those values, call the H5F_acs_close() function
    to close those values.

Platforms tested:
    Modi4 (Parallel & Fortran)
    Arabica (Fortran)
    Verbena (Fortran & C++)

Misc. update:
2003-04-21 13:30:55 -05:00
Bill Wendling
099e781c61 [svn-r6719] Purpose:
Bug Fix

Description:
    A resource leak happened if the H5Fget_access_plist() function was
    called. What was happening: the driver ID and info parts of the
    property list copied in H5Fget_access_plist were being overwritten,
    but those properties were copied initially, so we lost information.

Solution:
    Before copying over those values, call the H5F_acs_close() function
    to close those values.

Platforms tested:
    Modi4 (Parallel & Fortran)
    Arabica (Fortran)
    Verbena (Fortran & C++)

Misc. update:
2003-04-21 13:30:09 -05:00
Albert Cheng
9e3ab7e5d2 [svn-r6718] Purpose:
bug fix

Description:
The fphdf5.o and similar files are not included in the make clean
target.  So, if the same directory is used again for a different
build, the left behind file could cause a problem (e.g., if
the second build is for a different binary format.)

Solution:
Added fphdf5.c to the TEST_SRC list which indirect form the clean
target list.

Platforms tested:
Did not run h5committest tests because they don't verify this
failure.  I tested the fix in modi4 pp to verify all files are cleaned.

Misc. update:
2003-04-19 21:10:15 -05:00
Albert Cheng
11d5709f1e [svn-r6715] Purpose:
updated.

Description:

Solution:

Platforms tested:

Misc. update:
2003-04-18 08:34:08 -05:00
Albert Cheng
6bf4a73c6c [svn-r6714] Purpose:
Feature

Description:
Test program for the Flexible PHDF5 feature.

Platforms tested:
Tested on modi4 before but the feature is currenly disabled in
configure.  Checking this in for future work.

Misc. update:
2003-04-18 08:32:18 -05:00
Albert Cheng
8eb1a6150f [svn-r6711] Purpose:
Bug fix

Description:
Sometimes when H5detect fails (incorrect code, incorrect mpi launch
command, insufficient resources,...), it generates an incomplete or
even empty H5Tinit.c file.  If the empty file is not removed but
the make is run again, make will just use the empty file to generate
the library which will have lots of missing routines.  Make won't
fail until much later and the missing routines would be puzzling
to inexperienced users.

Solution:
If H5detect fails, the generated H5Tinit.c will be removed unless
$HDF5_Make_Ignore is set.  This is similar to removing .o file if
the compile fails.

Platforms tested:
Copper (parallel) which has a condition causing H5detect to fail.
That verified the change works.
Eirene (parallel) in which H5detect runs well.  This verified the
change works in normal conditions too.
Did not do the h5committest because this is just a makefile change
and the above two tests covered it well.

Misc. update:
2003-04-17 23:30:26 -05:00
Albert Cheng
32bcb46b23 [svn-r6710] Purpose:
updated with added file, testpar/t_ph5basic.c

Platforms tested:
bin/chkmanifest

Misc. update:
2003-04-17 22:07:43 -05:00
Albert Cheng
49fa61246e [svn-r6709] Purpose:
Bug fixes/API changes

Description:
    Previously, the Communicator and Info object arguments supplied
    to H5Pset_fapl_mpio() are stored in the property with its handle
    values.  This meant changes to the communicator or the Info object
    after calling H5Pset_fapl_mpio would affect the how the property
    list function.  This was also the case when H5Fopen/create operated.
    They just stored the handle value.  This is not according to the
    MPI-2 defined behavior of how Info objects should be handled. (MPI-2
    defines Info objects must be parsed when called.)
    The old design was trying to avoid numerous duplicates of the same
    information (e.g., every property object holds one version, every
    file opened holds another version, when all of them are referring to
    the same original version.)  Nevertheless it is safer to implement
    it according to MPI-2 definition.
    Futhermore, the library often needs to do message passing using the
    supplied communicator.  Using the same communicator as the application
    version may result in some messages mix up.
Solution:
    H5Pset_fapl_mpio now stores a duplicate of each of the communicator
    and Info object.
    H5Pget_fapl_mpio returns a duplicate of its stored communicator and
    Info object.  It is now the responsibility of the applications to free
    those objects when done.
    H5Fopen/create also stores a duplicate of the communicator and Info
    object supplied by the File Access Property list.
    H5Fclose frees those duplicates.
    There are a few more internal VFL call back functions that they
    follow this "make duplicates" requirement.

Platforms tested:
"h5committested".
What other platforms/configurations were tested?
    Eirene (mpicc), sol(mpicc), copper(parallel)

Misc. update:
Need to update MANIFEST for the added t_ph5basic.c which tests the
correctness of duplicated communicator and INFO object.
2003-04-17 22:04:56 -05:00
Albert Cheng
3585f15d91 [svn-r6708] Purpose:
Bug fixes/API changes

Description:
    Previously, the Communicator and Info object arguments supplied
    to H5Pset_fapl_mpio() are stored in the property with its handle
    values.  This meant changes to the communicator or the Info object
    after calling H5Pset_fapl_mpio would affect the how the property
    list function.  This was also the case when H5Fopen/create operated.
    They just stored the handle value.  This is not according to the
    MPI-2 defined behavior of how Info objects should be handled. (MPI-2
    defines Info objects must be parsed when called.)
    The old design was trying to avoid numerous duplicates of the same
    information (e.g., every property object holds one version, every
    file opened holds another version, when all of them are referring to
    the same original version.)  Nevertheless it is safer to implement
    it according to MPI-2 definition.
    Futhermore, the library often needs to do message passing using the
    supplied communicator.  Using the same communicator as the application
    version may result in some messages mix up.
Solution:
    H5Pset_fapl_mpio now stores a duplicate of each of the communicator
    and Info object.
    H5Pget_fapl_mpio returns a duplicate of its stored communicator and
    Info object.  It is now the responsibility of the applications to free
    those objects when done.
    H5Fopen/create also stores a duplicate of the communicator and Info
    object supplied by the File Access Property list.
    H5Fclose frees those duplicates.
    There are a few more internal VFL call back functions that they
    follow this "make duplicates" requirement.

Platforms tested:
"h5committested".
What other platforms/configurations were tested?
    Eirene (mpicc), sol(mpicc), copper(parallel)

Misc. update:
2003-04-17 22:03:52 -05:00
MuQun Yang
7c832af9aa [svn-r6707] Purpose:
A compiling error fixed for windows only

Description:
Use file handler instead of file stream  at H5FDstdio.c when using getfileHandle function of windows.

Solution:
see above, however; stdio driver tests failed on windows. I am still investigating the bug.
The current check will not fix the failure of stdio driver test on windows.
The good news is that it won't affect the release since the default driver used for test is sec2 driver and
all tests passed for sec2 driver on windows.

Platforms tested:
windows 2000 and confirmed at Linux.
Since the only change is two-line code inside #ifdef WIN32 #endif macro block,
it is not necessary to test all UNIX platforms. Still confirmed at eirene.

Misc. update:
2003-04-17 17:19:17 -05:00
Pedro Vicente Nunes
9dacf3d56b [svn-r6706] Purpose:
added test files for h5diff
:

Description:

Solution:

Platforms tested:

Misc. update:
2003-04-17 16:07:32 -05:00
Frank Baker
e6bd0196c3 [svn-r6705]
Purpose:
    Add new functions.
    Rewrite existing function.

Description:
    Added H5get_vfd_handle and H5get_obj_ids.
    Rewrote H5get_obj_count: function description was incomplete
        and 2 (of 3) parameters were missing.

Platforms tested:
    Safari, IE 5
2003-04-17 16:06:07 -05:00
Frank Baker
e68390cdc5 [svn-r6704]
Purpose:
    Add new function.

Description:
    Added H5set_free_list_limits.

Platforms tested:
    Safari, IE 5
2003-04-17 16:02:41 -05:00
Frank Baker
242f50e03e [svn-r6703]
Purpose:
    Add new function
    Add note regarding intentionally undocumented function

Description:
    Added H5Dget_offset.
    H5Ddebug -- Added note in HTML-coded comment that this function,
        while technically public, is not intended for public use and
        should not be listed in the RM.

Platforms tested:
    Safari, IE 5
2003-04-17 16:01:09 -05:00
Frank Baker
21716f5a20 [svn-r6702]
Purpose:
    Add new function

Description:
    Added H5Iget_name.

Platforms tested:
    Safari, IE 5
2003-04-17 15:57:43 -05:00
Pedro Vicente Nunes
a0acc67bdb [svn-r6701] Purpose:
added the testfiles below

Description:

Solution:

Platforms tested:

Misc. update:
2003-04-17 15:54:57 -05:00
Pedro Vicente Nunes
4147628137 [svn-r6700] Purpose:
added tests 1.7, 1.8, 1.9 described in the test matrix

Description:

Solution:

Platforms tested:

Linux/rockaway(C)
SunOS/arabica (C)
SGI/modi4 (C)


Misc. update:
2003-04-17 15:53:06 -05:00
Frank Baker
053cde0b33 [svn-r6699]
Purpose:
    Removed reference to discontinued API
    Changes reflecting renamed section of RM

Description:
    Removed reference to H5RA, ragged arrays.
    Made edits reflecting the H5Z change from "Compression" to
        "Filters & Compression."

Platforms tested:
    Safari, IE 5
2003-04-17 15:24:30 -05:00
Frank Baker
d381b5be8d [svn-r6698]
Purpose:
    Comment out functions not in R1.6

Description:
    Commented out these hyperslab functions since they are not "turned on"
    for Release 1.6:
        h5scombine_hyperslab_f
        h5scombine_select_f
        h5sselect_select_f

Platforms tested:
    Safari, IE 5
2003-04-17 15:19:14 -05:00
Frank Baker
155171fd2e [svn-r6697]
Purpose:
    Add new function
    Add operands to 2 existing functions
    Comment out functions not in R1.6

Description:
    H5Sget_select_type --  Added new function.
    H5Sselect_hyperslab -- Added operands H5S_SELECT_AND, H5S_SELECT_XOR,
            and H5S_SELECT_NOTB, H5S_SELECT_NOTA.
        Reformatted part of Description source code, with minor copy-edits.
    H5Sselect_elements -- Added operands H5S_SELECT_APPEND, H5S_SELECT_PREPEND.
    Commented out these hyperslab functions since they are not "turned on"
        for Release 1.6:
        H5Scombine_hyperslab
        H5Scombine_select
        H5Sselect_select
        and the corresponding FORTRAN routines

Platforms tested:
    Safari, IE 5
2003-04-17 15:18:14 -05:00
Frank Baker
ea7491e8eb [svn-r6696]
Purpose:
    Add new function

Description:
    Added H5Pset_szip

Platforms tested:
    Safari, IE 5
2003-04-17 14:56:08 -05:00
Pedro Vicente Nunes
1f7002f469 [svn-r6695] Purpose:
test files
2003-04-17 11:52:33 -05:00
Pedro Vicente Nunes
3bff6431c7 [svn-r6694] Purpose:
added some niceties and utilities, and more tests

Description:
some niceties: more error messages on cases of bad input
utilities: some functions to more human readable output
more tests: described in the test matrix


Platforms tested:

Linux/rockaway(C)
SunOS/arabica (C)
SGI/modi4 (C)
2003-04-17 11:50:56 -05:00
Pedro Vicente Nunes
8bb9ae4447 [svn-r6693] Purpose:
added more /tools/testfiles for h5diff

Description:

Solution:

Platforms tested:

Misc. update:
2003-04-17 11:47:39 -05:00
Albert Cheng
3198f06a63 [svn-r6692] Purpose:
feature.

Description:
Added the option of "setenv3" which sets the environment variable
that has three components like env AR="ar -X 64".  It is another
kludge like setenv2.  Got to code in a better 'setenv' option.

Platforms tested:
Copper (because its -64 compiling needs that AR set as above).
Eirene (where it usually launches).
Did not do h5committest which does not test bin/runtest.

Misc. update:
2003-04-16 16:11:45 -05:00
Robert E. McGrath
e2d71db8b1 [svn-r6690]
Purpose:
Fix bug in ntypes.c test.

Description:
Large arrays on stack break MacOSX

Solution:
Move arrays to static variables.

Platforms tested:
pommier
sol
modi4

Misc. update:
2003-04-16 15:06:57 -05:00
Quincey Koziol
eb26303cf4 [svn-r6689] Purpose:
Bug fix.

Description:
    The stdio filer driver is not reducing the file's size in the manner
that the sec2 driver does.

Solution:
    Copy code from the sec2 for handling this properly.

Platforms tested:
    h5committested
2003-04-16 14:24:05 -05:00
Bill Wendling
df785657a5 [svn-r6688] Purpose:
Bug Fix

Description:
    When using the STDIO driver, the dsets test would fail.

Solution:
    Need to flush the data to disk before doing an HDopen call.

Platforms tested:
    Modi4 (Parallel & Fortran)
    Arabica (Fortran)
    Verbena (Fortran & C++)

Misc. update:
2003-04-16 14:06:15 -05:00
Elena Pourmal
f3a0dc2b3d [svn-r6687]
Purpose:  Windows port for 1.5 branch

Description:  Projects files were not up-to-date; Fortran and C libraries,
              and tests would not build.

Solution: Updated all projects and coresponding all_withf90.zip file

Platforms tested: Windows 2000
                  Only static tests (both debug and release) passed on Windows.
                  DLLs have multiple problems ;-)

Misc. update:
2003-04-15 17:40:36 -05:00
Elena Pourmal
b2a0a50eb1 [svn-r6686]
Purpose:  Windows port

Description:  Windows  cannot convert from _uint64_t to double. One of
              the tests (test_set_local) used conversion to fill a data
              buffer. Compilation failed on Windows.


Solution: Fixed the code not to use conversion

Platforms tested: CRAY T90IEEE, arabica, modi4 with parallel, Windows 2000
                  Only static tests (both debug and release) passed on Windows.
                  DLLs have multiple problems ;-)

Misc. update:
2003-04-15 17:38:18 -05:00
Elena Pourmal
0d5bd9fe3a [svn-r6685]
Purpose: Added copyright statement; cleaned code and fixed bugs for
         Windows and Cray T90IEEE

Description:  Windows and Cray ports exposed few typos in the source code
              that caused tests to fail

Solution: Added copyright statement and clean the code.

Platforms tested: CRAY T90IEEE, arabica, modi4 with parallel, Windows 2000
                  Only static tests (both debug and release) passed on Windows.
                  DLLs have multiple problems ;-)

Misc. update:
2003-04-15 17:34:43 -05:00
Elena Pourmal
4f6535b588 [svn-r6684]
Purpose: Added copyright statement; cleaned code and fixed bugs for
         Windows and Cray T90IEEE

Description: Fortran files did not have copyright statement; VL types
             did not work on T90IEEE since I never brought the correct code
             from 1.4 branch; there were compilation warnings on Windows;
             some character parameters were not passed correctly to C stubs
             causing tests to fail on Windows.

Solution: Added copyright statement and clean the code.

Platforms tested: CRAY T90IEEE, arabica, modi4 with parallel, Windows 2000
                  Only static tests (both debug and release) passed on Windows.
                  DLLs have multiple problems ;-)

Misc. update:
2003-04-15 17:33:39 -05:00
Elena Pourmal
daf98a37cd [svn-r6683]
Purpose: Added copyright statement

Description: Fortran examples files did not have copyright statement.

Solution: Added copyright statement

Platforms tested: CRAY T90IEEE, arabica, modi4 with parallel, Windows 2000

Misc. update:
2003-04-15 17:28:05 -05:00
Elena Pourmal
967dfbe01c [svn-r6682]
Purpose: Catching up with 1.4 branch

Description: 1.5 didn't have unicos10.0.X configuration files
             for both C and fortran.

Solution: Added the files

Platforms tested: CRAY T90IEEE

Misc. update:
2003-04-15 17:25:50 -05:00
Elena Pourmal
6f931cff7c [svn-r6681]
Purpose: Catching up with 1.4 branch

Description: 1.5 didn't have unicos10.0.X configuration files
             for both C and fortran.

Solution: Added the files and updated MANIFEST

Platforms tested: bin.chmanifest on arabica

Misc. update:
2003-04-15 17:25:09 -05:00
Bill Wendling
3935629cd6 [svn-r6680] Purpose:
Feature Add

Description:
    Added a "libhdf5_fortran.settings" file to the Fortran library.

Platforms tested:
    Arabica (Fortran)
    Modi4   (Parallel & Fortran)
    Vebena  (Fortran & C++)

Misc. update:
2003-04-15 16:43:26 -05:00
Bill Wendling
28d2520341 [svn-r6672] Purpose:
Bug Fix

Description:
    When calling "H5F_get_access_plist" after setting the FAPL to a multi
    driver, and then trying to get the multi driver back, it resulted in
    returing a "NULL" value instead of the driver.

Solution:
    The stuff at the location pointed to by the driver was being stored
    into the property list and not the pointer to the driver itself.
    Changed the "H5P_set" code so that it stores the pointer instead of
    the driver...(Added an "&" in from of the "driver_info" variable).

Platforms tested:
    Arabica (Fortran)
    Burrwhite (Fortran & C++)
    Modi4 (Fortran & Parallel)

Misc. update:
2003-04-14 19:27:11 -05:00
Quincey Koziol
03b8054a7c [svn-r6667] Purpose:
Note improvements in re-using free space in file.
2003-04-14 06:23:31 -05:00
Quincey Koziol
93ade77d97 [svn-r6666] Purpose:
Code cleanup

Description:
    Clean up comments, etc.


Platforms tested:
    FreeBSD 4.8 (sleipnir) w/C++
    Linux 2.4 (burrwhite) w/FORTRAN
    Solaris 2.7 (arabica) w/FORTRAN
    IRIX64 6.5 (modi4) w/parallel & FORTRAN

    (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
2003-04-14 06:22:50 -05:00
Quincey Koziol
ba28043239 [svn-r6665] Purpose:
New feature.

Description:
    Added tests to verify correct operation of re-using file space.


Platforms tested:
    FreeBSD 4.8 (sleipnir) w/C++
    Linux 2.4 (burrwhite) w/FORTRAN
    Solaris 2.7 (arabica) w/FORTRAN
    IRIX64 6.5 (modi4) w/parallel & FORTRAN

    (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
2003-04-14 06:22:10 -05:00
Quincey Koziol
eb3e5b8144 [svn-r6664] Purpose:
Code cleanup

Description:
    Added macro for reporting line #'s of test failures more easily.


Platforms tested:
    FreeBSD 4.8 (sleipnir) w/C++
    Linux 2.4 (burrwhite) w/FORTRAN
    Solaris 2.7 (arabica) w/FORTRAN
    IRIX64 6.5 (modi4) w/parallel & FORTRAN

    (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
2003-04-14 06:21:18 -05:00
Quincey Koziol
83c6db1850 [svn-r6663] Purpose:
Bug fix

Description:
    Return correct value (1 instead of -1) on test failure.


Platforms tested:
    FreeBSD 4.8 (sleipnir) w/C++
    Linux 2.4 (burrwhite) w/FORTRAN
    Solaris 2.7 (arabica) w/FORTRAN
    IRIX64 6.5 (modi4) w/parallel & FORTRAN

    (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
2003-04-14 06:19:46 -05:00
Quincey Koziol
e270be267b [svn-r6662] Purpose:
Code cleanup

Description:
    Switched some system/library calls to use wrappers.


Platforms tested:
    FreeBSD 4.8 (sleipnir) w/C++
    Linux 2.4 (burrwhite) w/FORTRAN
    Solaris 2.7 (arabica) w/FORTRAN
    IRIX64 6.5 (modi4) w/parallel & FORTRAN

    (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
2003-04-14 06:18:55 -05:00
Quincey Koziol
7e0748de22 [svn-r6659] Purpose:
New feature, sorta

Description:
    Track changes to various internal APIs


Platforms tested:
    FreeBSD 4.8 (sleipnir) w/C++
    Linux 2.4 (burrwhite) w/FORTRAN
    Solaris 2.7 (arabica) w/FORTRAN
    IRIX64 6.5 (modi4) w/parallel & FORTRAN

    (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
2003-04-14 00:05:46 -05:00
Quincey Koziol
aa1cedb4f8 [svn-r6658] Purpose:
New feature

Description:
    Track changes in the internal metadata API with clearing the metadata
dirty flag without flushing object.

    Added ability to delete an object header in the file and restore all the
space referenced by various header messages.


Platforms tested:
    FreeBSD 4.8 (sleipnir) w/C++
    Linux 2.4 (burrwhite) w/FORTRAN
    Solaris 2.7 (arabica) w/FORTRAN
    IRIX64 6.5 (modi4) w/parallel & FORTRAN

    (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
2003-04-14 00:03:26 -05:00
Quincey Koziol
4e4bdd9163 [svn-r6657] Purpose:
Code cleanup, bug fix & new feature.

Description:
    The local heaps were missed in the last changes to the metadata "dirty"
flag, making them operate incorrectly in the metadata cache.  Fixed by changing
to use "cache_info.dirty" flag instead.

    Track changes for internal metadata API, regarding marking metadata as clean
without flushing it to the file.

    Added ability to delete a local heap in the file.

    Added ability to reduce the size of a  local heap if there is a free-space
block at the end of the heap and the free-space block is over half the size of
the local heap.

    Some migration of package-specific information out of the private header
and into the code module as well.


Platforms tested:
    FreeBSD 4.8 (sleipnir) w/C++
    Linux 2.4 (burrwhite) w/FORTRAN
    Solaris 2.7 (arabica) w/FORTRAN
    IRIX64 6.5 (modi4) w/parallel & FORTRAN

    (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
2003-04-14 00:00:20 -05:00
Quincey Koziol
1259957b5e [svn-r6656] Purpose:
Bug fix & new feature.

Description:
    The global heap 'dirty' flag was missed in the last round of changes to
the metadata cache and was not using the new "cache_info.dirty" flag.

Solution:
    Switched to using correct flag for marking dirty objects in the metadata
cache.

    Also, added new metadata callback for marking a piece of metadata as clean
without writing it back to the file.


Platforms tested:
    FreeBSD 4.8 (sleipnir) w/C++
    Linux 2.4 (burrwhite) w/FORTRAN
    Solaris 2.7 (arabica) w/FORTRAN
    IRIX64 6.5 (modi4) w/parallel & FORTRAN

    (h5committest not run due to my ongoing difficulties with C++ on burrwhite).
2003-04-13 23:54:52 -05:00